Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. When authenticating users Symfony by default regenerates the session ID upon login, but preserves the rest of session attributes. Because this does not clear CSRF tokens upon login, this might enables same-site attackers to bypass the CSRF protection mechanism by performing an attack similar to a session-fixation. This issue has been fixed in the 4.4 branch.
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 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | symfony/security-bundle | >= 2.0.0, < 4.4.50 | 4.4.50 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | >= 5.0.0, < 5.4.20 | 5.4.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | >= 6.0.0, < 6.0.20 | 6.0.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | >= 6.1.0, < 6.1.12 | 6.1.12 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | >= 6.2.0, < 6.2.6 | 6.2.6 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | >= 2.0.0, < 4.4.50 | 4.4.50 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | >= 5.0.0, < 5.4.20 | 5.4.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | >= 6.0.0, < 6.0.20 | 6.0.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | >= 6.1.0, < 6.1.12 | 6.1.12 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | >= 6.2.0, < 6.2.6 | 6.2.6 | GHSA-3gv2-29qc-v67m |
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
References
- https://github.com/symfony/symfony/security/advisories/GHSA-3gv2-29qc-v67m
- https://github.com/symfony/security-bundle/commit/076fd2088ada33d760758d98ff07ddedbf567946
- https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2022-24895.yaml
- https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html