RCE in Openhands
CVE-2026-33718
- CVSS v3
- 7.6 High
- Public exploits
- None known
- EPSS
- 0.021 · 81.7th percentile
- Published
- 2026-03-27
What to do
- Fixed in
1.5.0- Affected
- 1 affected product
OpenHands is software for AI-driven development. Starting in version 1.5.0, a Command Injection vulnerability exists in the `get_git_diff()` method at `openhands/runtime/utils/git_handler.py:134`. The `path` parameter from the `/api/conversations/{conversation_id}/git/diff` API endpoint is passed unsanitized to a shell command, allowing authenticated attackers to execute arbitrary commands in the agent sandbox. The user is already allowed to instruct the agent to execute commands, but this bypasses the normal channels. Version 1.5.0 fixes the issue.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- Low
I:L - Availability
- Low
A:L
EPSS exploit prediction
EPSS 0.021, 81.7th percentile (last changed ); down from 0.030 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.030 · newest: 0.021 · change: -0.010
Affected products
- Openhands — versions < 1.5.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (HORKimhab/CVE-2026-33718). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw (Exploit, Mitigation, Vendor Advisory)
- https://github.com/OpenHands/OpenHands/pull/13051 (Patch, Issue Tracking)
- https://docs.python.org/3/library/shlex.html#shlex.quote (Technical Description)
- https://docs.python.org/3/library/subprocess.html#security-considerations (Technical Description)
- https://owasp.org/www-community/attacks/Command_Injection (Technical Description)