{"cve":"CVE-2026-47211","nvd":{"published":"2026-08-03T20:17:24.030","modified":"2026-10-23T21:10:00.157","status":"Deferred","description":"Ouroboros is a local-first runtime for AI coding agents that records their actions and applies user-defined policies to constrain behavior. In versions prior to 0.39.0, if a user clones a malicious repository and runs Ouroboros commands within that directory, it can lead to arbitrary code execution and potential system takeover. The vulnerability stems from Ouroboros loading the .env file from the current working directory. Execution-affecting environment variables such as OUROBOROS_CLI_PATH, OPENCODE_CLI_PATH, and other backend selectors are accepted directly from this local .env. An attacker can include a malicious script in the repository and point the CLI path variable to it (e.g., OUROBOROS_CLI_PATH=./malicious_script.sh). When the user executes a command like ouroboros init or any command that instantiates the adapter, the malicious script is executed instead of the intended CLI. This issue has been fixed in version 0.39.0.","cvss_v4":{"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","score":8.4},"cvss_v3":null,"cwes":["CWE-426"],"references":["https://github.com/Q00/ouroboros/commit/4e70b760b4eb157469b58645339ba831f6513d37","https://github.com/Q00/ouroboros/pull/1078","https://github.com/Q00/ouroboros/security/advisories/GHSA-c4m7-2gwp-vw76"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-47211","score":0.00192,"percentile":0.08725,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-c4m7-2gwp-vw76","url":"https://osv.dev/vulnerability/GHSA-c4m7-2gwp-vw76","summary":"ouroboros-ai Vulnerable to Remote Code Execution via Untrusted Project-Directory .env","modified":"2026-09-10T03:50:46.526140972Z","packages":[{"ecosystem":"PyPI","name":"ouroboros-ai","purl":"pkg:pypi/ouroboros-ai","ranges":["<0.39.0"],"fixed":["0.39.0"]}]},{"id":"PYSEC-2026-2857","url":"https://osv.dev/vulnerability/PYSEC-2026-2857","summary":"ouroboros-ai Vulnerable to Remote Code Execution via Untrusted Project-Directory .env","modified":"2026-07-13T16:32:34.219872134Z","packages":[{"ecosystem":"PyPI","name":"ouroboros-ai","purl":"pkg:pypi/ouroboros-ai","ranges":["<0.39.0"],"fixed":["0.39.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}