CVE-2026-33718
March 27, 2026
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.
Affected Packages
https://github.com/OpenHands/OpenHands.git (GITHUB):
Affected version(s) >=ext-v0.0.99-test <1.5.0Fix Suggestion:
Update to version 1.5.0https://github.com/OpenHands/OpenHands.git (GITHUB):
Affected version(s) >=ext-v0.0.99-test <1.5.0Fix Suggestion:
Update to version 1.5.0https://github.com/OpenHands/OpenHands.git (GITHUB):
Affected version(s) >=ext-v0.0.99-test <1.5.0Fix Suggestion:
Update to version 1.5.0openhands (PYTHON):
Affected version(s) >=0.0.0 <1.5.0Fix Suggestion:
Update to version 1.5.0openhands (PYTHON):
Affected version(s) >=0.0.0 <1.5.0Fix Suggestion:
Update to version 1.5.0openhands (PYTHON):
Affected version(s) >=0.0.0 <1.5.0Fix Suggestion:
Update to version 1.5.0openhands (PYTHON):
Affected version(s) >=0.0.0 <1.5.0Fix Suggestion:
Update to version 1.5.0Related ResourcesĀ (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.2
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.6
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
LOW
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
EPSS
Base Score:
0.23