CVE Explorer
CVE-2026-33718
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 bypas
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"OpenHands","vendor":"OpenHands","versions":[{"status":"affected","version":"< 1.5.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:69d942fb5c6ca3fb68aa0976d1777e1941dddb928ae0c203d7e0b11955447c8e · sha256:2b41d32b0b2f1a64… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.6,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:69d942fb5c6ca3fb68aa0976d1777e1941dddb928ae0c203d7e0b11955447c8e · sha256:2b41d32b0b2f1a64… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-78","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:69d942fb5c6ca3fb68aa0976d1777e1941dddb928ae0c203d7e0b11955447c8e · sha256:2b41d32b0b2f1a64… · /containers/cna/problemTypes/0/descriptions/0
Source references
5 source assertions{"name":"https://docs.python.org/3/library/shlex.html#shlex.quote","tags":["x_refsource_MISC"],"url":"https://docs.python.org/3/library/shlex.html#shlex.quote"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:69d942fb5c6ca3fb68aa0976d1777e1941dddb928ae0c203d7e0b11955447c8e · sha256:2b41d32b0b2f1a64… · /containers/cna/references/2
{"name":"https://docs.python.org/3/library/subprocess.html#security-considerations","tags":["x_refsource_MISC"],"url":"https://docs.python.org/3/library/subprocess.html#security-considerations"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:69d942fb5c6ca3fb68aa0976d1777e1941dddb928ae0c203d7e0b11955447c8e · sha256:2b41d32b0b2f1a64… · /containers/cna/references/3
{"name":"https://github.com/OpenHands/OpenHands/pull/13051","tags":["x_refsource_MISC"],"url":"https://github.com/OpenHands/OpenHands/pull/13051"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:69d942fb5c6ca3fb68aa0976d1777e1941dddb928ae0c203d7e0b11955447c8e · sha256:2b41d32b0b2f1a64… · /containers/cna/references/1
{"name":"https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw","tags":["x_refsource_CONFIRM"],"url":"https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:69d942fb5c6ca3fb68aa0976d1777e1941dddb928ae0c203d7e0b11955447c8e · sha256:2b41d32b0b2f1a64… · /containers/cna/references/0
{"name":"https://owasp.org/www-community/attacks/Command_Injection","tags":["x_refsource_MISC"],"url":"https://owasp.org/www-community/attacks/Command_Injection"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:69d942fb5c6ca3fb68aa0976d1777e1941dddb928ae0c203d7e0b11955447c8e · sha256:2b41d32b0b2f1a64… · /containers/cna/references/4
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.