جزئیات آسیبپذیری
CVE-2026-46636
twigphp Twig
Twig: Sandbox method allowlist bypass via `Markup` subclass
CVSS 4.0
8.7بالا
شرح رسمی (انگلیسی)
Twig is a template language for PHP. From version 1.0.0 to before version 3.27.0, SecurityPolicy::checkMethodAllowed() unconditionally whitelists all method calls on instances of Twig\Markup. Twig\Markup is not final, so subclasses inherit the bypass. An application that passes an object of a Markup-derived class into a sandboxed template (typically to mark a chunk of HTML as safe) inadvertently exposes every public method of that subclass to template authors, regardless of the configured allowedMethods list. This issue has been patched in version 3.27.0.
امتیازهای CVSS
| امتیاز | نسخه | منبع | بردار |
|---|---|---|---|
| 8.7بالا | 4.0 | CVEProject cvelistV5 (CNA) (GitHub_M) | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
محصولات آسیبپذیر
| فروشنده | محصول | نسخهها | منبع |
|---|---|---|---|
| twigphp | Twig | >= 1.0.0, < 3.27.0 | CVEProject cvelistV5 (CNA) |
منابع و راهنماها
۵- https://github.com/twigphp/Twig/security/advisories/GHSA-64jr-qjx4-w2fh x_refsource_CONFIRM
- https://security-tracker.debian.org/tracker/CVE-2026-46636 x_refsource_MISC
- https://security-tracker.debian.org/tracker/DSA-6311-1 x_refsource_MISC
- https://symfony.com/blog/cve-2026-46636-sandbox-filter-tag-and-function-allow-list-bypass-when-sandbox-state-changes-between-renders x_refsource_MISC
- http://github.com/twigphp/Twig/releases/tag/v3.27.0 x_refsource_MISC
هشدار CVEهای بعدی این محصولمحصول را دنبال کنید تا آسیبپذیریهای تازه را در تلگرام بگیرید.
اطلاعات
- تاریخ انتشار
- ۱۴۰۵/۰۶/۱۴
- آخرین بهروزرسانی
- ۱۴۰۵/۰۶/۱۷
- وضعیت
- منتشرشده
- صادرکننده (CNA)
- GitHub_M
پیشبینی بهرهبرداری (EPSS)
۰٫۵۷٪
احتمال بهرهبرداری در ۳۰ روز
۴۷٫۳٪
صدک (نسبت به همهی CVEها)
ارزیابی SSVC (CISA)
- قابل خودکارسازی
- بله
- وضعیت بهرهبرداری
- ندارد
- اثر فنی
- جزئی
ضعفها (CWE)
- CWE-1336Improper Neutralization of Special Elements Used in a Template Engine