CVE-2026-46636

  • Severity 8.7 HIGH
  • Published
  • Updated
  • Status Awaiting Analysis
  • EUVD EUVD-2026-71779
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.7 HIGH
NETWORK
LOW
NONE
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
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 4.0
EPSS Score
Percentile: 31.6%
Debian logo
Debian Releases
Debian Product
Codename
php-twig
bookworm
ignored
bookworm (security)
vulnerable
forky
3.31.1-1
fixed
sid
3.31.1-1
fixed
trixie
3.27.0-0+deb13u1
fixed
trixie (security)
3.27.0-0+deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php-twig
focal
needs-triage
jammy
needs-triage
noble
needs-triage
questing
ignored
resolute
needs-triage
stonking
needs-triage