{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-33718",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-03-23T17:06:05.749Z",
        "datePublished": "2026-03-27T00:12:24.752Z",
        "dateUpdated": "2026-03-27T20:04:54.607Z"
    },
    "containers": {
        "cna": {
            "title": "OpenHands is Vulnerable to Command Injection through its Git Diff Handler",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-78",
                            "lang": "en",
                            "description": "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "LOW",
                        "baseScore": 7.6,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/OpenHands/OpenHands/security/advisories/GHSA-7h8w-hj9j-8rjw"
                },
                {
                    "name": "https://github.com/OpenHands/OpenHands/pull/13051",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/OpenHands/OpenHands/pull/13051"
                },
                {
                    "name": "https://docs.python.org/3/library/shlex.html#shlex.quote",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://docs.python.org/3/library/shlex.html#shlex.quote"
                },
                {
                    "name": "https://docs.python.org/3/library/subprocess.html#security-considerations",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://docs.python.org/3/library/subprocess.html#security-considerations"
                },
                {
                    "name": "https://owasp.org/www-community/attacks/Command_Injection",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://owasp.org/www-community/attacks/Command_Injection"
                }
            ],
            "affected": [
                {
                    "vendor": "OpenHands",
                    "product": "OpenHands",
                    "versions": [
                        {
                            "version": "< 1.5.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-03-27T00:12:24.752Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-7h8w-hj9j-8rjw",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-03-27T20:04:41.208442Z",
                                "id": "CVE-2026-33718",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-03-27T20:04:54.607Z"
                }
            }
        ]
    }
}