{"id":"DEBIAN-CVE-2026-46636","details":"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.","modified":"2026-09-26T08:47:36.336198015Z","published":"2026-09-04T22:17:17.360Z","upstream":["CVE-2026-46636"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-46636"}],"affected":[{"package":{"name":"php-twig","ecosystem":"Debian:12","purl":"pkg:deb/debian/php-twig?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.10.1-1","3.10.3-1","3.11.0-1","3.13.0-1","3.14.0-1","3.14.0-2","3.14.0-3","3.14.0-4","3.14.2-1","3.14.2-2","3.14.2-3","3.15.0-1","3.15.0-2","3.17.1-1","3.17.1-2","3.18.0-1","3.18.0-2","3.18.0-4","3.18.0-5","3.18.0-6","3.18.0-7","3.19.0-1","3.19.0-1~bootstrap","3.20.0-1","3.20.0-1~bootstrap","3.20.0-2","3.21.1-1","3.21.1-2","3.21.1-3","3.22.0-1","3.22.0-2","3.22.1-1","3.22.1-2","3.22.1-3","3.22.2-1","3.22.2-2","3.23.0-1","3.23.0-2","3.24.0-1","3.26.0-1","3.27.0-1","3.27.1-1","3.28.0-1","3.5.1-1","3.5.1-1+deb12u1","3.5.1-1+deb12u2","3.5.1-1+deb12u3","3.6.0-1","3.6.1-1","3.7.0-1","3.7.1-1","3.7.1-2","3.7.1-3","3.8.0-1","3.8.0-2","3.8.0-3","3.8.0-4","3.9.3-1","4.0.0~alpha1-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-46636.json"}},{"package":{"name":"php-twig","ecosystem":"Debian:13","purl":"pkg:deb/debian/php-twig?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.27.0-0+deb13u1"}]}],"versions":["3.20.0-2","3.21.1-1","3.21.1-2","3.21.1-3","3.22.0-1","3.22.0-2","3.22.1-1","3.22.1-2","3.22.1-3","3.22.2-1","3.22.2-2","3.23.0-1","3.23.0-2","3.24.0-1","3.26.0-0+deb13u1","3.26.0-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-46636.json"}},{"package":{"name":"php-twig","ecosystem":"Debian:14","purl":"pkg:deb/debian/php-twig?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.27.0-1"}]}],"versions":["3.20.0-2","3.21.1-1","3.21.1-2","3.21.1-3","3.22.0-1","3.22.0-2","3.22.1-1","3.22.1-2","3.22.1-3","3.22.2-1","3.22.2-2","3.23.0-1","3.23.0-2","3.24.0-1","3.26.0-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-46636.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}