GHSA-7h8w-hj9j-8rjw · Severity: high · Ecosystem: pip — OpenHands is Vulnerable to Command Injection through its Git Diff Handler
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.
Conclusion & alert: CVE-2026-33718 is rated High Exploit Risk (62.4/100): CVSS High severity, with low exploitation likelihood (EPSS 0.25%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-03 | 0.22% | 0.25% | +0.03% |
| 2 | 2026-04-28 | 0.43% | 0.22% | -0.22% |
| 3 | 2026-04-11 | — | 0.43% | — |
Full EPSS history (5 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.6 | 3.1 | HIGH |
|
2.8 | 4.7 | [email protected] |
| 9.9 | 3.1 | CRITICAL |
|
3.1 | 6.0 | [email protected] |
GHSA-7h8w-hj9j-8rjw · Severity: high · Ecosystem: pip — OpenHands is Vulnerable to Command Injection through its Git Diff Handler
| URL | Tags |
|---|---|
| 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://github.com/OpenHands/OpenHands/pull/13051 | Issue Tracking Patch |
| https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw | Exploit Mitigation Vendor Advisory |
| https://owasp.org/www-community/attacks/Command_Injection | Technical Description |