جزئیات آسیبپذیری
CVE-2026-57860
ForgeCode Arbitrary Code Execution via Unvetted .mcp.json in Untrusted Repository
شرح رسمی (انگلیسی)
ForgeCode (tailcallhq/forgecode), an AI pair-programming CLI, automatically loads and executes the MCP servers defined in a repository's .mcp.json file on startup without user confirmation. A malicious repository can supply a crafted .mcp.json whose mcpServers entries specify arbitrary command and args values (for example, command: bash with args: ['-c', 'touch /tmp/pwned']). When a user runs the forge CLI inside a cloned untrusted repository, the specified commands are spawned with the invoking user's privileges, resulting in arbitrary code execution. This provides a reliable initial-access and persistence primitive against developers who evaluate untrusted repositories with ForgeCode.
امتیازهای CVSS
| امتیاز | نسخه | منبع | بردار |
|---|---|---|---|
| 8.4بالا | 4.0 | CVEProject cvelistV5 (CNA) (VulnCheck) | 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 |
| 7.8بالا | 3.1 | CVEProject cvelistV5 (CNA) (VulnCheck) | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
محصولات آسیبپذیر
| فروشنده | محصول | نسخهها | منبع |
|---|---|---|---|
| tailcallhq | forgecode | 2.11.1 | CVEProject cvelistV5 (CNA) |
منابع و راهنماها
۵- https://github.com/tailcallhq/forgecode/issues/3252 issue-tracking
- https://github.com/tailcallhq/forgecode product
- https://github.com/tailcallhq/forgecode/commit/68ca3a3a26c73c38a700453d3d021b5bbdc15dbd patch
- https://www.vulncheck.com/advisories/forgecode-arbitrary-code-execution-via-unvetted-mcp-json-in-untrusted-repository third-party-advisory
- https://github.com/tailcallhq/forgecode/issues/3022 issue-tracking
اطلاعات
- تاریخ انتشار
- ۱۴۰۵/۰۴/۲۶
- آخرین بهروزرسانی
- ۱۴۰۵/۰۴/۲۹
- وضعیت
- منتشرشده
- صادرکننده (CNA)
- VulnCheck
پیشبینی بهرهبرداری (EPSS)
ارزیابی SSVC (CISA)
- قابل خودکارسازی
- خیر
- وضعیت بهرهبرداری
- اثبات مفهوم
- اثر فنی
- کامل
ضعفها (CWE)
- CWE-829Inclusion of Functionality from Untrusted Control Sphere