Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. ouroboros-ai
  4. ›
  5. CVE-2026-47211

CVE-2026-47211: ouroboros-ai Vulnerable to Remote Code Execution via Untrusted Project-Directory .env

May 29, 2026

A Remote Code Execution (RCE) vulnerability was discovered in Ouroboros. 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 (CWE-426: Untrusted Search Path & CWE-15: External Control of System Setting) stems from Ouroboros loading the .env file from the current working directory. Prior to the patch, execution-affecting environment variables such as OUROBOROS_CLI_PATH, OPENCODE_CLI_PATH, and other backend selectors were accepted directly from this local .env. An attacker could 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.

References

  • github.com/Q00/ouroboros/commit/4e70b760b4eb157469b58645339ba831f6513d37
  • github.com/Q00/ouroboros/pull/1078
  • github.com/Q00/ouroboros/security/advisories/GHSA-c4m7-2gwp-vw76
  • github.com/advisories/GHSA-c4m7-2gwp-vw76
  • nvd.nist.gov/vuln/detail/CVE-2026-47211

Code Behaviors & Features

Detect and mitigate CVE-2026-47211 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.39.0

Fixed versions

  • 0.39.0

Solution

Upgrade to version 0.39.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-426: Untrusted Search Path

Source file

pypi/ouroboros-ai/CVE-2026-47211.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:18 +0000.