CVE-2026-33718 | OpenHands up to 1.4.x API Endpoint git_handler.py get_git_diff path os command injection (GHSA-7h8w-hj9j-8rjw)
VulDBArchived Mar 27, 2026✓ Full text saved
A vulnerability described as critical has been identified in OpenHands up to 1.4.x . This affects the function get_git_diff of the file openhands/runtime/utils/git_handler.py of the component API Endpoint . Executing a manipulation of the argument path can lead to os command injection. This vulnerability is handled as CVE-2026-33718 . The attack can be executed remotely. There is not any exploit available. Upgrading the affected component is recommended.
Full text archived locally
✦ AI Summary· Claude Sonnet
VDB-353807 · CVE-2026-33718 · GHSA-7H8W-HJ9J-8RJW
OPENHANDS UP TO 1.4.X API ENDPOINT GIT_HANDLER.PY GET_GIT_DIFF PATH OS COMMAND INJECTION
HISTORYDIFFRELATEJSONXMLCTI
CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score
6.8 $0-$5k 2.83+
Summaryinfo
A vulnerability classified as critical has been found in OpenHands up to 1.4.x. This vulnerability affects the function get_git_diff of the file openhands/runtime/utils/git_handler.py of the component API Endpoint. The manipulation of the argument path leads to os command injection. This vulnerability is uniquely identified as CVE-2026-33718. The attack is possible to be carried out remotely. No exploit exists. It is recommended to upgrade the affected component.
Detailsinfo
A vulnerability was found in OpenHands up to 1.4.x. It has been rated as critical. This issue affects the function get_git_diff of the file openhands/runtime/utils/git_handler.py of the component API Endpoint. The manipulation of the argument path with an unknown input leads to a os command injection vulnerability. Using CWE to declare the problem leads to CWE-78. The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. Impacted is confidentiality, integrity, and availability. The summary by CVE is:
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.
It is possible to read the advisory at github.com. The identification of this vulnerability is CVE-2026-33718 since 03/23/2026. The exploitation is known to be easy. The attack may be initiated remotely. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1202 according to MITRE ATT&CK.
Upgrading to version 1.5.0 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
Productinfo
Name
OpenHands
Version
1.0
1.1
1.2
1.3
1.4
Website
Product: https://github.com/OpenHands/OpenHands/
CPE 2.3info
🔒
🔒
🔒
CPE 2.2info
🔒
🔒
🔒
CVSSv4info
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv3info
VulDB Meta Base Score: 6.9
VulDB Meta Temp Score: 6.8
VulDB Base Score: 6.3
VulDB Temp Score: 6.0
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 7.6
CNA Vector (GitHub_M): 🔒
CVSSv2info
Vector Complexity Authentication Confidentiality Integrity Availability
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploitinginfo
Class: Os command injection
CWE: CWE-78 / CWE-77 / CWE-74
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒
0-Day Unlock Unlock Unlock Unlock
Today Unlock Unlock Unlock Unlock
Threat Intelligenceinfo
Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍
Countermeasuresinfo
Recommended: Upgrade
Status: 🔍
0-Day Time: 🔒
Upgrade: OpenHands 1.5.0
Patch: github.com
Timelineinfo
03/23/2026 CVE reserved
03/27/2026 +4 days Advisory disclosed
03/27/2026 +0 days VulDB entry created
03/27/2026 +0 days VulDB entry last update
Sourcesinfo
Product: github.com
Advisory: GHSA-7h8w-hj9j-8rjw
Status: Confirmed
CVE: CVE-2026-33718 (🔒)
GCVE (CVE): GCVE-0-2026-33718
GCVE (VulDB): GCVE-100-353807
Entryinfo
Created: 03/27/2026 07:07
Changes: 03/27/2026 07:07 (68)
Complete: 🔍
Cache ID: 99:3D4:101
Discussion
No comments yet. Languages: en.
Please log in to comment.
◂ PreviousOverviewNext ▸