Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-45072: Symfony is a PHP framework for web and console applications and a set of reusable PHP components

25
Routine
MEDIUM 5.4UPGRADE

CVE-2026-45072 is a medium-severity flaw (CVSS 5.4) affecting symfony. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.4.24 until 6.4.40, 7.4.12, and 8.0.12, the development profiler file_excerpt Twig filter escapes PHP files through highlight_string() but interpolates lines from non-PHP files directly into <code> elements, allowing stored XSS against a developer who opens an attacker-written file such as var/log/dev.log in the profiler. This issue is fixed in

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score5.4 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionRequired
EPSS exploit chance0.3% (top 77%)
CISA exploited listNo
WeaknessCWE-79
Published2026-07-14
Last modified2026-07-16
Publisher (CNA): GitHub, Inc. · Vendor: sensiolabs

Share: LinkedIn · X · Reddit

Last updated 2026-07-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

sensiolabs symfony UPGRADE
Affected: >= 6.4.24 and < 6.4.40 · >= 7.2.9 and < 7.4.12 · >= 8.0.0 and < 8.0.12
Fixed in: 6.4.40, 7.4.12, 8.0.12
Safe to downgrade to: a release before 6.4.24
1. Check installed version
apt-cache policy symfony || rpm -q symfony || symfony --version
2. UPGRADE to 6.4.40 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade symfony
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade symfony
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 6.4.24 (Debian / Ubuntu)
apt-cache madison symfony sudo apt install symfony=<VERSION_BEFORE_6.4.24> sudo apt-mark hold symfony
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list symfony sudo dnf downgrade symfony-<VERSION_BEFORE_6.4.24> sudo dnf versionlock add symfony
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-45072?

symfony: upgrade to 6.4.40, 7.4.12, 8.0.12. Exact commands for each OS are on this page.

Is CVE-2026-45072 being exploited?

CVE-2026-45072 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-45072 affect?

CVE-2026-45072 affects symfony. Severity is medium (CVSS 5.4). Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.4.24 until 6.4.40, 7.4.12, and 8.0.12, the development profiler file_excerpt Twig filter escapes PHP files through highlight_string() b

How urgent is CVE-2026-45072?

Priority 25/100. No elevated risk signals yet.

Software pages

PHP vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.