CVE-2026-33718Openhands
Critical 9.9
Follow: this CVE · Openhands · Openhands We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 9.9
- EPSS
- —
- Auth required
- Yes
- Published
- Mar 27, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Openhands.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | openhands-ai |
< 1.5.0 |
1.5.0 |
pip install "openhands-ai>=1.5.0" |
| PyPI | openhands-ai |
< 1.5.0 |
1.5.0 |
pip install "openhands-ai>=1.5.0" |
Per OSV / GitHub Advisories (GHSA-7h8w-hj9j-8rjw, PYSEC-2026-106). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openhands | openhands | < 1.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- docs.python.org Technical Description
- docs.python.org Technical Description
- github.com Issue Tracking Patch
- github.com Exploit Mitigation Vendor Advisory
- owasp.org Technical Description