> CVE-2026-33718 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-03-27 01:16
MODIFIED
2026-03-27 01:16
CVSS_SCORE V3
7.6
EPSS (Prob. Exploit)
3.15%
Top 12.1%
DATA SOURCES:
NVD 🔗 2026-03-27 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-11-05 OSV 🔗 2026-09-13

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
EXPLOITABILITY
2.8
IMPACT
4.7

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
Low (L)
Interruption partielle du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
Low
Interruption partielle du service possible

> WEAKNESSES

CWE-78

> CWE DETAILED DESCRIPTIONS

CWE-78: Improper Neutralization of Special Elements used in an OS Command - 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 before it is sent to a downstream component.

> GITHUB SECURITY ADVISORY

GHSA-7h8w-hj9j-8rjw HIGH

OpenHands is Vulnerable to Command Injection through its Git Diff Handler

AFFECTED PACKAGES:
PIP / openhands-ai
>= 0, < 1.5.0
Fixed in: 1.5.0

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

OpenHands is Vulnerable to Command Injection through its Git Diff Handler

AFFECTED PACKAGES:
Unknown / Unknown
48 versions affected
ALIASES:
GHSA-7h8w-hj9j-8rjw, PYSEC-2026-106

> HISTORIQUE DES MODIFICATIONS

Première apparition
27/03/2026 01:16
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:59
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') - The product constructs all or part of an OS command using externally-influenced input from an upstr...
Nouvelle valeur:
CWE-78: Improper Neutralization of Special Elements used in an OS Command - The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it doe...
📊 ENRICHISSEMENT 01/04/2026 06:02
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') - The product constructs all or part of an OS command using externally-influenced input from an upstr...
Total des modifications: 2 Dernière mise à jour: 1 week ago

> REFERENCES

https://docs.python.org/3/library/shlex.html#shlex.quote
https://docs.python.org/3/library/subprocess.html#security-considerations
https://github.com/OpenHands/OpenHands/pull/13051
https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw
https://owasp.org/www-community/attacks/Command_Injection
« BACK_TO_HOME