CVE-2026-33718 OpenHands is Vulnerable to Command Injection through its Git Diff Handler
CriticalCVSS 9.9
EPSS 2.1%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| openhands | < 1.5.0; = < 1.5.0 | 1.5.0 | Fixed |
| pypi openhands-ai(PyPI) | < 1.5.0; = 0.8.3; = 0.9.0; = 0.9.1 +87 more | 1.5.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi openhands-ai(PyPI) | < 1.5.0 | 1.5.0 |
| pypi openhands-ai(PyPI) | = 0.10.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.11.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.12.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.12.2 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.12.3 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.13.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.13.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.14.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.14.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.14.2 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.14.3 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.15.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.15.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.15.2 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.15.3 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.16.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.16.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.17.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.18.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.19.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.20.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.21.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.22.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.23.0 | No fix listed |
Show 68 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi openhands-ai(PyPI) | = 0.24.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.25.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.26.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.27.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.28.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.28.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.29.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.29.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.30.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.30.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.31.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.32.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.33.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.34.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.35.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.35.2 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.36.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.36.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.37.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.38.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.39.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.39.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.39.2 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.40.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.41.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.42.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.43.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.44.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.45.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.46.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.47.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.48.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.49.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.49.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.50.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.51.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.51.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.52.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.52.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.53.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.54.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.55.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.56.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.57.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.57.2 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.58.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.59.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.60.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.61.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.62.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.8.3 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.9.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.9.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.9.2 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.9.3 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.9.4 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.9.5 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.9.6 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.9.7 | No fix listed |
| pypi openhands-ai(PyPI) | = 0.9.8 | No fix listed |
| pypi openhands-ai(PyPI) | = 1.0.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 1.1.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 1.2.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 1.2.1 | No fix listed |
| pypi openhands-ai(PyPI) | = 1.3.0 | No fix listed |
| pypi openhands-ai(PyPI) | = 1.4.0 | No fix listed |
| openhands | = < 1.5.0 | No fix listed |
| openhands | < 1.5.0 | 1.5.0 |
References
- https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw exploit mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/OpenHands/OpenHands/pull/13051 issue-tracking patch
- https://docs.python.org/3/library/shlex.html#shlex.quote technical-description
- https://docs.python.org/3/library/subprocess.html#security-considerations technical-description
- github.com product
- github.com
- https://owasp.org/www-community/attacks/Command_Injection technical-description
- github.com