Impact
The flaw resides in Ouroboros’ loading of a .env file from the current working directory. When a user runs Ouroboros commands in a directory that contains a malicious .env, the tool accepts execution‑affecting variables such as OUROBOROS_CLI_PATH or OPENCODE_CLI_PATH. An attacker can set one of these variables to point to a custom script packaged in the repository. The ensuing command execution will launch the attacker‑supplied script instead of the intended CLI, giving the attacker arbitrary code execution and potentially full system takeover. The weakness is classified as CWE‑426.
Affected Systems
The vulnerability affects the Q00:ouroboros runtime for AI coding agents. All releases prior to 0.39.0 are susceptible. The issue was fixed in version 0.39.0, so users of 0.38.x and earlier should be aware.
Risk and Exploitability
The CVSS score of 8.4 indicates a high severity. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack requires a malicious repository to be cloned locally and the user to run an Ouroboros command within that directory. The vulnerability is exploitable by a local user with the ability to control the repository contents, and it does not require network access.
OpenCVE Enrichment
Github GHSA