Skip to main content
CVE-2026-45072VulnerabilityPublished Updated

Symfony: From 6.4.24 until 6.4.40, 7.4.12, and 8.0.12, the development profiler file_excerpt Twig filter escapes PHP

Affects symfonySource GCVE Database

0
Compare

Not known to be exploited · CVSS 5.4 Medium · fixed in 6.4.40 : update symfony when convenient.

Data as of 28 Nov 2026, 18:37 UTC

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 15% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 6.4.40, 7.4.12, 8.0.12
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Nov 2026.

What to do

Upgrade symfony/symfony and symfony/twig-bridge to 6.4.40; symfony/symfony and symfony/web-profiler-bundle to 7.4.12; symfony/symfony and symfony/web-profiler-bundle to 8.0.12.

Affected software

ProductAffectedFixed in
Ubuntu 16.04 LTSsymfonypkg:deb/ubuntu/symfony?arch=source&distro=xenialOther threatsAffected
  • 2.7.1+dfsg-1 – 2.7.10-0ubuntu2
5 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSsymfonypkg:deb/ubuntu/symfony?arch=source&distro=esm-apps/bionicOther threatsAffected
  • 2.8.7+dfsg-1.3ubuntu1 – 3.4.6+dfsg-1ubuntu0.1+esm2
6 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSsymfonypkg:deb/ubuntu/symfony?arch=source&distro=esm-apps/focalOther threatsAffected
  • 4.3.4+dfsg-1ubuntu1 – 4.3.8+dfsg-1ubuntu1+esm2
4 affected builds
Fixed in–
Ubuntu Pro 22.04 LTSsymfonypkg:deb/ubuntu/symfony?arch=source&distro=esm-apps/jammyOther threatsAffected
  • =5.2.6+dfsg-1ubuntu7
  • =5.4.4+dfsg-1ubuntu8
  • =5.4.4+dfsg-1ubuntu8+esm1
Fixed in–
Ubuntu Pro 24.04 LTSsymfonypkg:deb/ubuntu/symfony?arch=source&distro=esm-apps/nobleOther threatsAffected
  • 5.4.23+dfsg-1ubuntu1 – 6.4.5+dfsg-3ubuntu3+esm1
5 affected builds
Fixed in–
Ubuntu 25.10symfonypkg:deb/ubuntu/symfony?arch=source&distro=questingOther threatsAffected
  • 6.4.18+dfsg-1ubuntu1 – 6.4.24+dfsg-1
4 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in Symfony versions 6.4.40, 7.4.12, and 8.0.12. Users should upgrade to these versions or later to remediate the vulnerability. No other vendor advisory or temporary workaround is provided. Applying the official patch is the recommended mitigation.

Description

A stored cross-site scripting (XSS) vulnerability exists in the Symfony PHP framework's development profiler file_excerpt Twig filter. Versions from 6.4.24 up to but not including 6.4.40, 7.4.12, and 8.0.12 improperly handle non-PHP files by interpolating lines directly into <code> elements without escaping. This allows an attacker to inject malicious scripts that execute when a developer views an attacker-controlled file in the profiler. The issue is fixed in Symfony versions 6.4.40, 7.4.12, and 8.0.12.

References

Community reviews

Loading reviews…