CVE-2026-33718
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.
How to fix
- openhands openhands1.5.0 or later
- openhands-ai1.5.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openhands openhands | v < 1.5.0 | 1.5.0 |
| openhands-aiPyPI | v < 1.5.0 | 1.5.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.