CVE-2026-33718
CRITICAL EPSS 77.0%
Published Mar 27, 20263mo ago · Modified Jun 17, 20261w ago
9.9 CVSS 3.1
Published Mar 27, 2026 3mo ago
Last Modified Jun 17, 2026 1w ago
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 Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Attack Vector Network
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Changed
Confidentiality High
Integrity High
Availability High
Threat Intelligence
EPSS Exploit Probability
77.0% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 1
CWE-78 OS Command Injection Injection
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| openhands | openhands | * | <1.5.0 |
References 5
- docs.python.org https://docs.python.org/3/library/shlex.html#shlex.quote
- docs.python.org https://docs.python.org/3/library/subprocess.html#security-considerations
- github.com https://github.com/OpenHands/OpenHands/pull/13051
- github.com https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw
- owasp.org https://owasp.org/www-community/attacks/Command_Injection
Remediation
- github.com https://github.com/OpenHands/OpenHands/pull/13051