Description
An issue was discovered in the Security component in Symfony 2.7.x before 2.7.48, 2.8.x before 2.8.41, 3.3.x before 3.3.17, 3.4.x before 3.4.11, and 4.0.x before 4.0.11. By default, a user's session is invalidated when the user is logged out. This behavior can be disabled through the invalidate_session option. In this case, CSRF tokens were not erased during logout which allowed for CSRF token fixation.
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 | 3.4.12+dfsg-1 | — |
| Debian 13 | symfony | 3.4.12+dfsg-1 | — |
| Debian 12 | symfony | 3.4.12+dfsg-1 | — |
| Debian 9 | symfony | 2.8.7+dfsg-1.3+deb9u1 | DSA-4262-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | symfony | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | symfony | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | symfony/security | >= 2.7.0, < 2.7.48 | 2.7.48 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security | >= 2.8.0, < 2.8.41 | 2.8.41 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security | >= 3.0.0, < 3.3.17 | 3.3.17 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security | >= 3.4.0, < 3.4.11 | 3.4.11 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security | >= 4.0.0, < 4.0.11 | 4.0.11 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security-bundle | >= 2.7.0, < 2.7.48 | 2.7.48 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security-bundle | >= 2.8.0, < 2.8.41 | 2.8.41 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security-bundle | >= 3.0.0, < 3.3.17 | 3.3.17 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security-bundle | >= 3.4.0, < 3.4.11 | 3.4.11 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security-bundle | >= 4.0.0, < 4.0.11 | 4.0.11 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security-http | >= 2.7.0, < 2.7.48 | 2.7.48 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security-http | >= 2.8.0, < 2.8.41 | 2.8.41 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security-http | >= 3.0.0, < 3.3.17 | 3.3.17 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security-http | >= 3.4.0, < 3.4.11 | 3.4.11 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/security-http | >= 4.0.0, < 4.0.11 | 4.0.11 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/symfony | >= 2.7.0, < 2.7.48 | 2.7.48 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/symfony | >= 2.8.0, < 2.8.41 | 2.8.41 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/symfony | >= 3.0.0, < 3.3.17 | 3.3.17 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/symfony | >= 3.4.0, < 3.4.11 | 3.4.11 | GHSA-g4g7-q726-v5hg |
| Packagist | symfony/symfony | >= 4.0.0, < 4.0.11 | 4.0.11 | GHSA-g4g7-q726-v5hg |
Advisories 1
- DSA-4262-1 symfony - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- FEDORA-2018-96d770ddc9 vendor-advisory
- FEDORA-2018-ba0b683c10 vendor-advisory
- https://symfony.com/blog/cve-2018-11406-csrf-token-fixation
- FEDORA-2018-eba0006df2 vendor-advisory
- DSA-4262 vendor-advisory