CVE-2026-33718

High

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.

SeverityHigh
CVSS7.6
Exploit probability—
ProductOpenhands
PublishedMar 27, 2026
First seenMar 27, 2026

How to fix

Update
  • openhands openhands1.5.0 or later
  • openhands-ai1.5.0 or later

Affected products

ProductAffected versionsFixed in
openhands openhandsv < 1.5.01.5.0
openhands-aiPyPIv < 1.5.01.5.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.