CVE-2026-47211CWE-426

CVE-2026-47211

published August 4, 2026

CVSS
8.4
EPSS
0%
Percentile
8.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
8.4 · NONE
CVSS v4.0
Not supplied
EPSS
0.00192 · 8.4th percentile
Weakness
CWE-426 · Untrusted Search Path
Published
2026-08-04T00:17Z
References (3)
EPSS history
Timeline
  • 03 AUG 20:01Z
    Ouroboros: Remote Code Execution via Untrusted Project-Directory .env
    cvelistv5