{"answers":{"affected":"3 open source packages ship an affected version, including openhands-ai. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-33718 in the wild and no public exploit code.","fix":"Upgrade openhands-ai to 1.5.0 or later.","what":"CVE-2026-33718 is a high-severity command injection vulnerability in OpenHands, published on 27 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-33718 and fix it if it is affected.\n\nWhat it is: CVE-2026-33718 is a high-severity command injection vulnerability in OpenHands, published on 27 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-33718 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- openhands-ai (PyPI): affected all versions; fixed in 1.5.0\n- openhands-ai (PyPI): affected all versions; fixed in 1.5.0\n- openhands-ai (PyPI): affected all versions; fixed in 1.5.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-33718/ (Markdown: https://insights.sbomify.com/CVE-2026-33718/index.md)","id":"CVE-2026-33718","markdown":"https://insights.sbomify.com/CVE-2026-33718/index.md","name":"CVE-2026-33718","record":{"aliases":["GHSA-7h8w-hj9j-8rjw","PYSEC-2026-106"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"AI development tool","requires_auth":"low_privilege","summary":"Authenticated attackers can execute arbitrary commands in the agent sandbox via unsanitized input in the Git diff handler.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"openhands","vendor":"openhands"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-07-29","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-07-29T09:51:12Z","kind":"github_poc","ref":"https://github.com/HORKimhab/CVE-2026-33718","stars":0,"title":"CVE-2026-33718"}],"tier":"poc_unverified"},"has_fix":true,"headline":"OpenHands is Vulnerable to Command Injection through its Git Diff Handler","id":"CVE-2026-33718","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":3,"n_references":5,"next":{"headline":"AVideo: Unauthenticated CDN Configuration Takeover via Empty Default Key Bypass and Mass-Assignment","id":"CVE-2026-33719"},"packages":[{"ecosystem":"PyPI","fixed":["1.5.0"],"introduced":["0"],"last_affected":[],"package":"openhands-ai","purl":null,"source":"GHSA-7h8w-hj9j-8rjw"},{"ecosystem":"PyPI","fixed":["1.5.0"],"introduced":["0"],"last_affected":[],"package":"openhands-ai","purl":"pkg:pypi/openhands-ai","source":"GHSA-7h8w-hj9j-8rjw"},{"ecosystem":"PyPI","fixed":["1.5.0"],"introduced":["0"],"last_affected":[],"package":"openhands-ai","purl":"pkg:pypi/openhands-ai","source":"PYSEC-2026-106"}],"prev":{"headline":"AVideo: Remote Code Execution via PHP Temp File in Encoder downloadURL","id":"CVE-2026-33717"},"products":["OpenHands"],"published":"2026-03-27","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-27","vendors":["OpenHands"]},"summary":"Authenticated attackers can execute arbitrary commands in the agent sandbox via unsanitized input in the Git diff handler.","url":"https://insights.sbomify.com/CVE-2026-33718/"}