CVE-2026-33718: OpenHands is Vulnerable to Command Injection through its Git Diff Handler
Vulnerability summary
CVE-2026-33718 is a critical (CVSS 9.9) OS Command Injection vulnerability in openhands. EPSS estimates a 2.01% chance of exploitation in the next 30 days, higher than 80.6% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 27-03-2026PublishedVulnerability first disclosed.
- 27-03-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA7.6HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:LDiffers
- OSV · PypiEcosystem advisory · calculated9.9CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
2.01%
Chance of exploitation in the next 30 days
Percentile
81%
Versus all other CVEs
30-day change
Decrease -1.03 pp
From 3.03% on 26-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundOpenhands
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Openhands1 product
- openhands< 1.5.0
PyPI1 product
- openhands-ai< 1.5.0
2 vendors · 2 products
References
8 links- github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjwX Refsource CONFIRMWEBEVIDENCEExploitMitigationVendor Advisory