CVE-2026-33718OpenHands is Vulnerable to Command Injection through its Git Diff Handler
- 7.6HighCVSS base score
- 2.1%Exploitation in 30 daysEPSS · top 18% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By GitHub_M
- 4 days later
· 4 days later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
| NVDNVD · Analyzed | 3.1 | Critical9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 2.1% · top 18% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.6.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIopenhands-aiGHSA-7h8w-hj9j-8rjw (opens in a new tab)
References
References5
- https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw (opens in a new tab)x_refsource_CONFIRM
- https://github.com/OpenHands/OpenHands/pull/13051 (opens in a new tab)x_refsource_MISC
- https://docs.python.org/3/library/shlex.html#shlex.quote (opens in a new tab)x_refsource_MISC
- https://docs.python.org/3/library/subprocess.html#security-considerations (opens in a new tab)x_refsource_MISC
- https://owasp.org/www-community/attacks/Command_Injection (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-16500 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-7h8w-hj9j-8rjw (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-33718)Record last updated .