8.7

CVE-2026-46636: twigphp twig

CVSS: 8.7v4.0HighAwaiting analysis
AliasesUBUNTU-CVE-2026-46636DEBIAN-CVE-2026-46636
Published 04-09-2026Last modified 08-09-2026

Vulnerability summary

CVE-2026-46636 is a high (CVSS 8.7) vulnerability in twigphp twig. EPSS estimates a 0.57% chance of exploitation in the next 30 days, higher than 46.1% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.57%
0%100%
Low · +0.21 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 04-09-2026
    PublishedVulnerability first disclosed.
  2. 08-09-2026
    Last modifiedVulnerability information updated.

Description

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 metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.57%

Chance of exploitation in the next 30 days

Percentile

46%

Versus all other CVEs

30-day change

+0.21 pp

From 0.36% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.57%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • php-twigAll versions (No fix recorded) | < 3.27.0-0+deb13u1 | < 3.27.0-1
Twigphp1 product
  • twig≥ 1.0.0, < 3.27.0
Ubuntu1 product
  • php-twigAll versions (No fix recorded)

3 vendors · 3 products

References

7 links