9.9

CVE-2026-33718: OpenHands is Vulnerable to Command Injection through its Git Diff Handler

Analyzed
AliasesGHSA-7h8w-hj9j-8rjwPYSEC-2026-106
Published 27-03-2026Last modified 27-03-2026

Vulnerability summary

CVE-2026-33718 is a critical (CVSS 9.9) OS Command Injection vulnerability in openhands. EPSS estimates a 2.01% chance of exploitation in the next 30 days, higher than 80.6% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.9/10
010
Critical · v3.1 (NVD)
EPSS score
2.01%
0%100%
Low · -1.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 27-03-2026
    PublishedVulnerability first disclosed.
  2. 27-03-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

2.01%

Chance of exploitation in the next 30 days

Percentile

81%

Versus all other CVEs

30-day change

Decrease -1.03 pp

From 3.03% on 26-09-2026

26-09-202626-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Openhands

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Openhands1 product
PyPI1 product
  • openhands-ai< 1.5.0

2 vendors · 2 products

References

8 links