{"id":"CVE-2026-33718","url":"https://www.cyber-defence.io/tools/cve/CVE-2026-33718","generatedAt":"2026-10-28T00:52:34.774Z","title":"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`.","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.","published":"2026-03-27T01:16:19.000Z","lastModified":"2026-06-17T10:37:59.000Z","status":"Analyzed","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":9.9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"},"cwe":["CWE-78"],"affected":["openhands/openhands"],"epss":{"score":0.02007,"percentile":0.80695,"date":"2026-10-26","history":[{"date":"2026-09-24","score":0.03033,"percentile":0.86944},{"date":"2026-10-25","score":0.02007,"percentile":0.80696}]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (2.01%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://docs.python.org/3/library/shlex.html#shlex.quote","tags":["Technical Description"],"source":"security-advisories@github.com"},{"url":"https://docs.python.org/3/library/subprocess.html#security-considerations","tags":["Technical Description"],"source":"security-advisories@github.com"},{"url":"https://github.com/OpenHands/OpenHands/pull/13051","tags":["Issue Tracking","Patch"],"source":"security-advisories@github.com"},{"url":"https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw","tags":["Exploit","Mitigation","Vendor Advisory"],"source":"security-advisories@github.com"},{"url":"https://owasp.org/www-community/attacks/Command_Injection","tags":["Technical Description"],"source":"security-advisories@github.com"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-33718","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}