CVE-2026-47211 Details
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.
A remote code execution vulnerability exists in Ouroboros, a local-first runtime for AI coding agents, in versions prior to 0.39.0. The issue arises because Ouroboros loads the .env file from the current working directory, allowing execution-affecting environment variables to be manipulated. If a user clones a malicious repository and runs Ouroboros commands in that directory, an attacker can include a harmful script in the repository and use specific environment variables to execute it, potentially leading to system takeover.
Users are advised to upgrade to Ouroboros version 0.39.0 or later. If an immediate upgrade is not possible, inspect the .env files in cloned repositories for any unexpected OUROBOROS_*_CLI_PATH or OPENCODE_CLI_PATH overrides before running Ouroboros commands.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 3, 2026CISA-ADP
Assessed Aug 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Q00/ouroboros/commit/4e70b760b4eb157469b58645339ba831f6513d37 | [email protected] | Source CodeVendor |
| https://github.com/Q00/ouroboros/pull/1078 | [email protected] | Issue TrackingVendor |
| https://github.com/Q00/ouroboros/security/advisories/GHSA-c4m7-2gwp-vw76 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-426 | Untrusted Search Path | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Q00 Ouroboros | < 0.39.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 3, 2026 | CVE Modified | CISA-ADP |
| Aug 3, 2026 | New CVE Received | [email protected] |
Volerion