Command injection in OpenHands git diff API allows arbitrary commands in agent sandbox
CVE-2026-33718 describes a command injection flaw in OpenHands' get_git_diff() method, where the unsanitized `path` parameter from the /api/conversations/{conversation_id}/git/diff endpoint is passed to a shell command. Authenticated attackers could execute arbitrary commands in the agent sandbox, bypassing normal agent channels; version 1.5.0 fixes the issue.
Disclosed 27 March 2026 · Record updated 13 September 2026
Impact
Authenticated attackers could execute arbitrary commands inside the AI agent's sandbox runtime, bypassing the normal command execution channel.
Our coverage
No articles linked to this incident yet.
Sources
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-33718
