CVE-2026-47211: Ouroboros - Command Injection
- Cve: CVE-2026-47211
- Name: Ouroboros - Command Injection
- 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.
- Impact: Local attackers can execute arbitrary code, potentially leading to full system compromise.
- Remediation: Update to version 0.39.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.4
- Cvss 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
- Epss score: 0.00192
- Epss percentile: 0.08772
- Assignee: [email protected]
- Published at: 2026-08-03T20:17:24Z
- Age in days: 113
- Modified at: 2026-10-23T21:10:00Z
- References total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-47211
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-426 | Untrusted Search Path |
References
Same in every row:
- Source: nvd
- Tags:
| Url |
|---|
| 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 |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| q00/ouroboros | commit, package, pull, security_advisory | yes | /v1/repositories/q00/ouroboros |
Index
- Repositories: 1
- Repositories high signal: 1
- Checked, none or zero: packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts