CVE-2026-46636
HIGHDescription
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.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v4 Vector
Exploitability
Impact
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Exploit Intelligence
Low risk: more likely to be exploited than 29% of all known CVEs.
References
Related Vulnerabilities
Other CWE-1336 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2024-4040 | Critical | 9.8 | 100% | KEV | Fix |
| CVE-2024-23692 | Critical | 9.8 | 99% | KEV + Ransom | - |
| CVE-2025-47916 | Critical | 10.0 | 84% | - | Fix |
| CVE-2024-32651 | Critical | 10.0 | 84% | - | Fix |
| CVE-2025-34300 | Critical | 10.0 | 79% | - | - |
| CVE-2022-25813 | High | 7.5 | 67% | - | Fix |
Common questions
How do I fix CVE-2026-46636?
Upgrade php-twig on debian 13 to 3.27.0-0+deb13u1 or later.
Is CVE-2026-46636 being actively exploited?
Not that we know of. CVE-2026-46636 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.36% is the estimated probability that it will be exploited in the next 30 days. That is higher than 29% of all scored CVEs.
How severe is CVE-2026-46636?
CVE-2026-46636 has a CVSS v4 base score of 8.7, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2026-46636 affect?
Published advisories record a fix for php-twig (Debian). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2026-46636
Markdown
[](https://tridentstack.com/cve/CVE-2026-46636)HTML
<a href="https://tridentstack.com/cve/CVE-2026-46636"><img src="https://tridentstack.com/cve/badge/CVE-2026-46636.svg" alt="CVE-2026-46636"></a>Check your Linux endpoints for this class of vulnerability
TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-09-08.