Skip to content
HighVulnerability

CVE-2026-33718: OpenHands command injection in git diff endpoint path parameter

Identifier
CVE-2026-33718
Published
Record updated
View JSON
Affected
  • openhands-ai >= 0, < 1.5.0
Fixed in
1.5.0
  • released March 11, 2026, 16 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
2.0%

Summary

CVE-2026-33718 affects OpenHands starting in version 1.5.0. The `path` parameter of the `/api/conversations/{conversation_id}/git/diff` endpoint is passed unsanitized to a shell command in `get_git_diff()` at `openhands/runtime/utils/git_handler.py:134`. An authenticated attacker can execute arbitrary commands in the agent sandbox, bypassing the normal channels through which the user may already instruct the agent to run commands.

Mitigation

Fixed in 1.5.0.