Vulnérabilité dans ouroboros-ai (CVE-2026-47211)
Résumé
Vulnérabilité dans ouroboros-ai (CVE-2026-47211). Risque d'opérations non autorisées ou de divulgation. Exploitable via OUROBOROS_CLI_PATH. Atténuation : mise à jour vers 0.39.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
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.
Patches
The vulnerability has been patched in version 0.39.0 via PR #1078.
The fix establishes a strict trust boundary by applying a denylist to project-local .env loading. It blocks execution-affecting environment variables (such as runtime selectors and CLI path overrides) from being loaded from the project directory. Explicit constructor overrides and trusted user-owned home configurations (~/.ouroboros/.env) remain fully functional.
Users are strongly advised to upgrade to version 0.39.0 or later.
Workarounds
If upgrading is not immediately possi…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-47211 a été découverte dans ouroboros-ai.
Des attaquants peuvent cibler un point d'entrée spécifique comme OUROBOROS_CLI_PATH à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour ouroboros-ai vers 0.39.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « ouroboros-ai CVE-2026-47211 » sur le site de l'éditeur.
CVE-2026-47211 (ouroboros-ai) — CWE-426
Surface d'attaque : OUROBOROS_CLI_PATH / OPENCODE_CLI_PATH
Correctif : 0.39.0 — appliquer immédiatement
Contournement : If upgrading is not immediately possible, users must carefully inspect any .env file inside cloned repositories before running Ouroboros commands to ensure it does not contain unexpected OUROBOROS_*_CLI_PATH or OPENCODE_CLI_PATH overrides.
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-426) affecte ouroboros-ai. Les attaquants atteignent le code vulnérable via OUROBOROS_CLI_PATH.
Consultez l'avis de l'éditeur pour les versions affectées de ouroboros-ai. Surface d'attaque : OUROBOROS_CLI_PATH / OPENCODE_CLI_PATH.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 0.39.0.
Contournement : If upgrading is not immediately possible, users must carefully inspect any .env file inside cloned repositories before running Ouroboros commands to ensure it does not contain unexpected OUROBOROS_*_CLI_PATH or OPENCODE_CLI_PATH overrides.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'ouroboros-ai' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
ouroboros-aiを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
If upgrading is not immediately possible, users must carefully inspect any `.env` file inside cloned repositories before running Ouroboros commands to ensure it does not contain unexpected `OUROBOROS_*_CLI_PATH` or `OPENCODE_CLI_PATH` overrides.パッチが適用されるまでの応急処置として、If upgrading is not immediately possible, users must carefully inspect any
.envfile inside cloned repositories before running Ouroboros commands to ensure it does not contain unexpectedOUROBOROS_*_CLI_PATHorOPENCODE_CLI_PATHoverrides. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3Apply patch patch
Upgrade ouroboros-ai to 0.39.0ステージング環境で 0.39.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- package github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web github.com