Read the docs
TI-2026-26097 Aliases CVE-2026-33718GHSA-7h8w-hj9j-8rjw

OpenHands is Vulnerable to Command Injection through its Git Diff Handler

Priority MEDIUM 46CWE-78Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.02007 80th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed OpenHands (OpenHands): 1.5.0openhands-ai (PyPI): 1.5.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
OpenHandsOpenHandsbefore 1.5.01.5.0Patch availableCNA
—openhands-ai (PyPI)before 1.5.01.5.0Patch availableGHSA-7h8w-hj9j-8rjw
  • OpenHands VendorOpenHands Affected before 1.5.0 Fixed in 1.5.0 Patch available CNA
  • openhands-ai (PyPI) Vendor— Affected before 1.5.0 Fixed in 1.5.0 Patch available GHSA-7h8w-hj9j-8rjw

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:openhands:openhands:*:*:*:*:*:python:*:*before 1.5.0VulnerableOpenHands
  • cpe:2.3:a:openhands:openhands:*:*:*:*:*:python:*:* Versions before 1.5.0 Vulnerable ·OpenHands

Remediation

  • Fix · CNA OpenHands (OpenHands) Fixed in 1.5.0
  • Fix · GHSA-7h8w-hj9j-8rjw openhands-ai (PyPI) Fixed in 1.5.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-33718
  2. 2026-10-03 Alias added: GHSA-7h8w-hj9j-8rjw

References

Sources