Live threats

All CVEs / Openhands

CVE-2026-33718Openhands

Critical 9.9

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Openhands.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
openhandsopenhands< 1.5.0

Official sources

References

Links published by the sources. Open them with care.