{"cve":"CVE-2026-33718","nvd":{"published":"2026-03-27T01:16:19.483","modified":"2026-06-17T10:37:58.863","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9},"cwes":["CWE-78"],"references":["https://docs.python.org/3/library/shlex.html#shlex.quote","https://docs.python.org/3/library/subprocess.html#security-considerations","https://github.com/OpenHands/OpenHands/pull/13051","https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw","https://owasp.org/www-community/attacks/Command_Injection"],"products":["openhands:openhands"],"source":"nvd","synced_at":"2026-10-19T22:28:18.033120106+00:00"},"epss":{"cve":"CVE-2026-33718","score":0.02007,"percentile":0.80834,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7h8w-hj9j-8rjw","url":"https://osv.dev/vulnerability/GHSA-7h8w-hj9j-8rjw","summary":"OpenHands is Vulnerable to Command Injection through its Git Diff Handler","modified":"2026-06-08T19:15:12.481329219Z","packages":[{"ecosystem":"PyPI","name":"openhands-ai","purl":"pkg:pypi/openhands-ai","ranges":["<1.5.0"],"fixed":["1.5.0"]}]},{"id":"PYSEC-2026-106","url":"https://osv.dev/vulnerability/PYSEC-2026-106","summary":"","modified":"2026-05-20T09:19:10.385090Z","packages":[{"ecosystem":"PyPI","name":"openhands-ai","purl":"pkg:pypi/openhands-ai","ranges":["<1.5.0"],"fixed":["1.5.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}