Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony HTTP cache system, acts as a reverse proxy: It caches entire responses (including headers) and returns them to the clients. In a recent change in the `AbstractSessionListener`, the response might contain a `Set-Cookie` header. If the Symfony HTTP cache system is enabled, this response might bill stored and return to the next clients. An attacker can use this vulnerability to retrieve the victim's session. This issue has been patched and is available for branch 4.4.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| symfony | symfony | >= 2.0.0, < 4.4.50, >= 5.0.0, < 5.4.20, >= 6.0.0, < 6.0.20, >= 6.1.0, < 6.1.12, >= 6.2.0, < 6.2.6 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | symfony | 5.4.20+dfsg-1 | — |
| Debian 13 | symfony | 5.4.20+dfsg-1 | — |
| Debian 12 | symfony | 5.4.20+dfsg-1 | — |
| Debian 10 | symfony | 3.4.22+dfsg-2+deb10u2 | DLA-3493-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | symfony | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | symfony | 6.4.5+dfsg-3ubuntu3+esm1 | USN-7272-1 |
| Ubuntu Pro 22.04 LTS | symfony | 5.4.4+dfsg-1ubuntu8+esm1 | USN-7272-1 |
| Ubuntu Pro 20.04 LTS | symfony | 4.3.8+dfsg-1ubuntu1+esm2 | USN-7272-1 |
| Ubuntu Pro 18.04 LTS | symfony | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
moften/Symfony-CVE-Scanner-PoC- ★ 0 · May 7, 2025
CVE-2021-21424 - CRLF Injection - CVE-2021-41268 - Host Header Injection - CVE-2022-24894 - WebProfiler abierto - CVE-2019-10909 - Directory Traversal
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | symfony/http-kernel | >= 2.0.0, < 4.4.50 | 4.4.50 | GHSA-h7vf-5wrv-9fhv |
| Packagist | symfony/http-kernel | >= 5.0.0, < 5.4.20 | 5.4.20 | GHSA-h7vf-5wrv-9fhv |
| Packagist | symfony/http-kernel | >= 6.0.0, < 6.0.20 | 6.0.20 | GHSA-h7vf-5wrv-9fhv |
| Packagist | symfony/http-kernel | >= 6.1.0, < 6.1.12 | 6.1.12 | GHSA-h7vf-5wrv-9fhv |
| Packagist | symfony/http-kernel | >= 6.2.0, < 6.2.6 | 6.2.6 | GHSA-h7vf-5wrv-9fhv |
| Packagist | symfony/symfony | >= 2.0.0, < 4.4.50 | 4.4.50 | GHSA-h7vf-5wrv-9fhv |
| Packagist | symfony/symfony | >= 5.0.0, < 5.4.20 | 5.4.20 | GHSA-h7vf-5wrv-9fhv |
| Packagist | symfony/symfony | >= 6.0.0, < 6.0.20 | 6.0.20 | GHSA-h7vf-5wrv-9fhv |
| Packagist | symfony/symfony | >= 6.1.0, < 6.1.12 | 6.1.12 | GHSA-h7vf-5wrv-9fhv |
| Packagist | symfony/symfony | >= 6.2.0, < 6.2.6 | 6.2.6 | GHSA-h7vf-5wrv-9fhv |
Advisories 2
- USN-7272-1 symfony vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-3493-1 symfony - security update Debian Security (DSA / DLA) · Mar 9, 2026