# CVE-2026-66065: Ouroboros: Untrusted project .env can still reach RCE via omitted execution-routing keys (Incomplete fix of CVE-2026-47211)

- Severity: High 8.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-02)
- Published: 2026-06-19T15:12:25.000Z
- Modified: 2026-10-23T21:10:00.157Z
- Also known as: GHSA-jv2h-4p9v-wf5w
- Weaknesses: CWE-15, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- Q00 ouroboros: < 0.42.1
- ouroboros-ai (PyPI): before 0.42.1

## Every score

- GitHub_M: CVSS:4.0 8.4 High `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`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/Q00/ouroboros/security/advisories/GHSA-jv2h-4p9v-wf5w> (web)
- <https://github.com/Q00/ouroboros/releases/tag/v0.42.1>
- <https://github.com/Q00/ouroboros> (package)

## Sources

- CVE List: [CVE-2026-66065](https://www.cve.org/CVERecord?id=CVE-2026-66065), CVE Terms of Use, modified 2026-08-05
- GitHub Advisory Database: [GHSA-jv2h-4p9v-wf5w](https://github.com/advisories/GHSA-jv2h-4p9v-wf5w), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-66065](https://nvd.nist.gov/vuln/detail/CVE-2026-66065), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-66065 · Whole record: https://cve.day/CVE-2026-66065.json · Rebuilt by cve.day 2026-11-25T22:59:30.907Z
