Skip to main content
← All vulnerabilities
CVE-2026-33718GHSA-7H8W-HJ9J-8RJWPYSEC-2026-106

OpenHands is Vulnerable to Command Injection through its Git Diff Handler

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.5.0
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • OpenHands OpenHands

    fixed in 1.5.0

  • openhands-aiPyPI

    fixed in 1.5.0

References 6

GitHub · OpenHands/OpenHands

docs.python.org

owasp.org

GitHub · HORKimhab/CVE-2026-33718