CVE-2026-47211Q00 ouroboros
High 8.4
Follow: this CVE · Q00 · Q00 ouroboros We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 4.0
- 8.4
- EPSS
- —
- Auth required
- Yes
- Published
- Aug 3, 2026
- Updated
- Oct 23, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-426
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for ouroboros.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | ouroboros-ai |
< 0.39.0 |
0.39.0 |
pip install "ouroboros-ai>=0.39.0" |
| PyPI | ouroboros-ai |
< 0.39.0 |
0.39.0 |
pip install "ouroboros-ai>=0.39.0" |
Per OSV / GitHub Advisories (GHSA-c4m7-2gwp-vw76, PYSEC-2026-2857). Check the version in your lockfile before upgrading.
Affected products
- Q00 · ouroboros
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.