CVE-2026-33718 — Vulnerability in openhands-ai — CVE Details
CRITICAL
Published March 27, 2026Updated May 20, 2026Source: osv
Summary
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.
Advisory Timeline
- First published March 27, 2026 (199 days ago).
- Last revised May 20, 2026 — 54 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip
Update openhands-ai to 1.5.0 or laterpip install "openhands-ai>=1.5.0"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: pypi (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| openhands-ai | pypi | 0.10.0, 0.11.0, 0.12.0, 0.12.2 (+86 more) | 1.5.0 |
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/OpenHands/OpenHands/pull/13051FIX
- https://docs.python.org/3/library/shlex.html#shlex.quoteARTICLE
- https://docs.python.org/3/library/subprocess.html#security-considerationsARTICLE
- https://owasp.org/www-community/attacks/Command_InjectionARTICLE
- https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjwEVIDENCE
Frequently Asked Questions
- What is CVE-2026-33718?
- This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
- How do I check if my project is affected by CVE-2026-33718?
- CVE-2026-33718 affects openhands-ai. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-33718 and 200,000+ other known vulnerabilities.
Severity & Exploitability
CVSS Score
9.9
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
PYSEC-2026-106
GHSA-7h8w-hj9j-8rjw
Related CVEs
- CVE-2026-61447CRITICAL
PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets
- CVE-2026-61445CRITICAL
PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies