Advisory record · GHSA-c4m7-2gwp-vw76

ouroboros-ai Vulnerable to Remote Code Execution via Untrusted Project-Directory .env

CVSS 8.4 HighEPSS 0.0019 · 8th percentile

Published by the GitHub Advisory Database at 29 May 2026, 21:22 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
ouroboros-aiPyPI<0.39.00.39.0
Identifiers
GHSA-c4m7-2gwp-vw76 · CVE-2026-47211 · PYSEC-2026-2857
Weakness (CWE)
CWE-426
Published
29 May 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The ouroboros-ai package before 0.39.0 loads a `.env` file from the current working directory, and accepts execution-affecting variables such as the CLI path settings from it. An attacker who gets a user to clone a malicious repository and run Ouroboros commands inside it can cause arbitrary code to run on the user's system. Upgrade to ouroboros-ai 0.39.0 or later, which blocks these variables from project-local `.env` files. Until then, inspect any `.env` file in cloned repositories for unexpected CLI path overrides before running commands.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.4 High 4.0 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0019, the 8th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:29 UTC First seen by agentprime
  2. 31 Oct 2026, 14:29 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.