CVE-2018-11406
Symfony CSRF Token Fixation
Also known as GHSA-g4g7-q726-v5hg
Mitigation
- Upgrade symfony/symfony to one of 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 (or later in the same release line).
- Upgrade symfony/security-bundle to one of 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 (or later in the same release line).
- Upgrade symfony/security-http to one of 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 (or later in the same release line).
- Upgrade symfony/security to one of 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 (or later in the same release line).
Who should check
- Projects that depend on Packagist package symfony/symfony (>= 2.7.0, < 2.7.48)
- Projects that depend on Packagist package symfony/security-bundle (>= 2.7.0, < 2.7.48)
- Projects that depend on Packagist package symfony/security-http (>= 2.7.0, < 2.7.48)
- Projects that depend on Packagist package symfony/security (>= 2.7.0, < 2.7.48)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- symfony/symfony >= 2.7.0, < 2.7.48; symfony/security-bundle >= 2.7.0, < 2.7.48; symfony/security-http >= 2.7.0, < 2.7.48; symfony/security >= 2.7.0, < 2.7.48
- Fixed in
- 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.8 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.73% chance of exploitation in 30 days (percentile 50, 2026-11-26)
- CWE
- CWE-352
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist symfony/symfony | >= 2.7.0, < 2.7.48 | 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 | osv |
| Packagist symfony/security-bundle | >= 2.7.0, < 2.7.48 | 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 | osv |
| Packagist symfony/security-http | >= 2.7.0, < 2.7.48 | 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 | osv |
| Packagist symfony/security | >= 2.7.0, < 2.7.48 | 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2018-11406. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2018-11406.md Affected: symfony/symfony >= 2.7.0, < 2.7.48; symfony/security-bundle >= 2.7.0, < 2.7.48; symfony/security-http >= 2.7.0, < 2.7.48; symfony/security >= 2.7.0, < 2.7.48 Fixed in: 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 Steps: 1. Search this machine and project for symfony/symfony (Packagist), symfony/security-bundle (Packagist), symfony/security-http (Packagist), symfony/security (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UBQK7JDXIELADIPGZIOUCZKMAJM5LSBW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WU5N2TZFNGXDGMXMPP7LZCWTFLENF6WH/
- https://symfony.com/blog/cve-2018-11406-csrf-token-fixation
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4XNBMFW33H47O5TZGA7JYCVLDBCXAJV/
- https://www.debian.org/security/2018/dsa-4262
- https://nvd.nist.gov/vuln/detail/CVE-2018-11406
Other
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2018-11406.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2018-11406.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2018-11406.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2018-11406.yaml
- https://github.com/symfony/symfony
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G4XNBMFW33H47O5TZGA7JYCVLDBCXAJV
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBQK7JDXIELADIPGZIOUCZKMAJM5LSBW
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WU5N2TZFNGXDGMXMPP7LZCWTFLENF6WH
- https://symfony.com/cve-2018-11406
FAQ
Is CVE-2018-11406 being exploited?
There is no confirmed exploitation: CVE-2018-11406 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.73% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2018-11406?
High: CVSS 8.8 (v3.0, scored by NVD). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2018-11406?
symfony/symfony >= 2.7.0, < 2.7.48; symfony/security-bundle >= 2.7.0, < 2.7.48; symfony/security-http >= 2.7.0, < 2.7.48; symfony/security >= 2.7.0, < 2.7.48.
Is there a fix for CVE-2018-11406?
Yes. Fixed in 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11. Upgrade symfony/symfony to one of 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 (or later in the same release line). Upgrade symfony/security-bundle to one of 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 (or later in the same release line). Upgrade symfony/security-http to one of 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 (or later in the same release line). Upgrade symfony/security to one of 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 (or later in the same release line).
How do I check if I'm affected by CVE-2018-11406?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.