8.8

CVE-2026-46640: symfony twig Code Injection

CVSS: 8.8v3.1HighAnalyzed
AliasesUBUNTU-CVE-2026-46640DEBIAN-CVE-2026-46640CGA-fx3x-w74m-c463
Published 14-07-2026Last modified 16-07-2026

Vulnerability summary

CVE-2026-46640 is a high (CVSS 8.8) Code Injection vulnerability in symfony twig. EPSS estimates a 0.64% chance of exploitation in the next 30 days, higher than 49.8% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
0.64%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 14-07-2026
    PublishedVulnerability first disclosed.
  2. 16-07-2026
    Last modifiedVulnerability information updated.

Description

Twig is a template language for PHP. From 3.15.0 until 3.26.0, _self.(<string>) and import-alias dynamic attribute syntax can concatenate an attacker-controlled string into a MacroReferenceExpression name without identifier validation, causing raw PHP to be emitted into the generated template source and executed at template-load time. This issue is fixed in version 3.26.0.

CVSS metrics

7 scores · 5 sources · 2 versions

EPSS trend

Probability

0.64%

Chance of exploitation in the next 30 days

Percentile

50%

Versus all other CVEs

30-day change

0.00 pp

From 0.64% on 20-09-2026

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

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

Chainguard1 product
  • drupal-11.3< 11.3.10-r0
Debian1 product
  • php-twig< 3.27.0-0+deb13u1 | < 3.26.0-1
Symfony1 product
  • twig≥ 3.15.0, < 3.26.0
Twigphp1 product
  • twig≥ 3.15.0, < 3.26.0
Ubuntu1 product
  • php-twigAll versions (No fix recorded)

5 vendors · 5 products

References

9 links