{"answers":{"affected":"2 open source packages ship an affected version, including ouroboros-ai.","exploited":"There is no known exploitation of CVE-2026-66065 in the wild and no public exploit code.","fix":"Upgrade ouroboros-ai to 0.42.1 or later.","what":"CVE-2026-66065 is a high-severity code injection vulnerability in Q00 ouroboros, published on 3 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-66065 and fix it if it is affected.\n\nWhat it is: CVE-2026-66065 is a high-severity code injection vulnerability in Q00 ouroboros, published on 3 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-66065 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ouroboros-ai (PyPI): affected all versions; fixed in 0.42.1\n- ouroboros-ai (PyPI): affected all versions; fixed in 0.42.1\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-66065/ (Markdown: https://insights.sbomify.com/CVE-2026-66065/index.md)","id":"CVE-2026-66065","markdown":"https://insights.sbomify.com/CVE-2026-66065/index.md","name":"CVE-2026-66065","record":{"aliases":["GHSA-jv2h-4p9v-wf5w"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"AI coding agent runtime","requires_auth":"none","summary":"Attackers can achieve remote code execution by shipping a malicious .env file in a cloned repository, bypassing approval gates in the Ouroboros AI agent runtime.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-15","name":"External Control of System or Configuration Setting"}],"description":"Ouroboros is a local-first runtime for AI coding agents that records their actions and applies user-defined policies to constrain behavior. Versions prior to 0.42.1 have an incomplete denylist. Several execution-routing keys of the same RCE class were omitted, so a malicious cloned repo can still reach arbitrary command execution by shipping a .env (auto-loaded at import, with no review step). The CVE-2026-47211 fix added _UNTRUSTED_ENV_DENYLIST to stop an untrusted project-directory .env from redirecting execution, but it did not account for all keys. The backend config-home and MCP/plugin roots bypass the approval gate by pointing the nested agent, MCP servers, and plugin roster at attacker config. Other variables re-enable blocked local transports, replace sub-agent prompts, switch backends, and lower tool approval classes, further weakening the approval gate. This issue has been fixed in version 0.42.1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"ouroboros-ai: Incomplete fix of CVE-2026-47211: untrusted project .env can still reach RCE via omitted execution-routing keys","id":"CVE-2026-66065","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing","id":"CVE-2026-66066"},"packages":[{"ecosystem":"PyPI","fixed":["0.42.1"],"introduced":["0"],"last_affected":[],"package":"ouroboros-ai","purl":null,"source":"GHSA-jv2h-4p9v-wf5w"},{"ecosystem":"PyPI","fixed":["0.42.1"],"introduced":["0"],"last_affected":[],"package":"ouroboros-ai","purl":"pkg:pypi/ouroboros-ai","source":"GHSA-jv2h-4p9v-wf5w"}],"prev":{"headline":"goshs has ACL Bypass \u0026 Path Traversal","id":"CVE-2026-66064"},"products":["ouroboros"],"published":"2026-08-03","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-05","vendors":["Q00"]},"summary":"Attackers can achieve remote code execution by shipping a malicious .env file in a cloned repository, bypassing approval gates in the Ouroboros AI agent runtime.","url":"https://insights.sbomify.com/CVE-2026-66065/"}