جزئیات آسیبپذیری
CVE-2026-47211
Ouroboros: Remote Code Execution via Untrusted Project-Directory .env
شرح رسمی (انگلیسی)
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.
امتیازهای CVSS
| امتیاز | نسخه | منبع | بردار |
|---|---|---|---|
| 8.4بالا | 4.0 | CVEProject cvelistV5 (CNA) (GitHub_M) | 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 |
محصولات آسیبپذیر
| فروشنده | محصول | نسخهها | منبع |
|---|---|---|---|
| Q00 | ouroboros | < 0.39.0 | CVEProject cvelistV5 (CNA) |
منابع و راهنماها
۳- https://github.com/Q00/ouroboros/security/advisories/GHSA-c4m7-2gwp-vw76 x_refsource_CONFIRM
- https://github.com/Q00/ouroboros/pull/1078 x_refsource_MISC
- https://github.com/Q00/ouroboros/commit/4e70b760b4eb157469b58645339ba831f6513d37 x_refsource_MISC
اطلاعات
- تاریخ انتشار
- ۱۴۰۵/۰۵/۱۲
- آخرین بهروزرسانی
- ۱۴۰۵/۰۵/۱۳
- وضعیت
- منتشرشده
- صادرکننده (CNA)
- GitHub_M
پیشبینی بهرهبرداری (EPSS)
ارزیابی SSVC (CISA)
- قابل خودکارسازی
- خیر
- وضعیت بهرهبرداری
- ندارد
- اثر فنی
- کامل
ضعفها (CWE)
- CWE-426Untrusted Search Path