CVE-2018-11406 — Vulnerability in symfony/symfony — CVE Details
Symfony CSRF Token Fixation
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.74%). Schedule for your next planned update.
Does your project use an affected symfony/symfony version?
Paste your composer.lock to check it for CVE-2018-11406 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published May 14, 2022 (1658 days ago).
- Last revised February 18, 2024 — 645 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "symfony/symfony:^3.4.11"
composer require "symfony/symfony:^4.0.11"
composer require "symfony/symfony:^2.8.41"
composer require "symfony/symfony:^3.3.17"
composer require "symfony/symfony:^2.7.48"
composer require "symfony/security-http:^4.0.11"
composer require "symfony/security-http:^2.8.41"
composer require "symfony/security-bundle:^3.3.17"
composer require "symfony/security:^3.4.11"
composer require "symfony/security-http:^2.7.48"
composer require "symfony/security:^2.7.48"
composer require "symfony/security-bundle:^2.7.48"
composer require "symfony/security-bundle:^2.8.41"
composer require "symfony/security:^3.3.17"
composer require "symfony/security-bundle:^4.0.11"
composer require "symfony/security:^2.8.41"
composer require "symfony/security-http:^3.3.17"
composer require "symfony/security-bundle:^3.4.11"
composer require "symfony/security:^4.0.11"
composer require "symfony/security-http:^3.4.11"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (20)
Affects 1 ecosystem: Packagist (4).
| Package | Fixed In |
|---|---|
| symfony/symfony Packagist · Affected: v3.4.0, v3.4.1, v3.4.10, v3.4.2 (+7 more) | 3.4.11 |
| symfony/symfony Packagist · Affected: v4.0.0, v4.0.1, v4.0.10, v4.0.2 (+7 more) | 4.0.11 |
| symfony/symfony Packagist · Affected: v2.8.0, v2.8.1, v2.8.10, v2.8.11 (+37 more) | 2.8.41 |
| symfony/symfony Packagist · Affected: v3.0.0, v3.0.1, v3.0.2, v3.0.3 (+56 more) | 3.3.17 |
| symfony/symfony Packagist · Affected: v2.7.0, v2.7.1, v2.7.10, v2.7.11 (+44 more) | 2.7.48 |
| symfony/security-http Packagist · Affected: v4.0.0, v4.0.1, v4.0.10, v4.0.2 (+7 more) | 4.0.11 |
| symfony/security-http Packagist · Affected: v2.8.0, v2.8.1, v2.8.10, v2.8.11 (+37 more) | 2.8.41 |
| symfony/security-bundle Packagist · Affected: v3.0.0, v3.0.1, v3.0.2, v3.0.3 (+56 more) | 3.3.17 |
| symfony/security Packagist · Affected: v3.4.0, v3.4.1, v3.4.10, v3.4.2 (+7 more) | 3.4.11 |
| symfony/security-http Packagist · Affected: v2.7.0, v2.7.1, v2.7.10, v2.7.11 (+44 more) | 2.7.48 |
| symfony/security Packagist · Affected: v2.7.0, v2.7.1, v2.7.10, v2.7.11 (+44 more) | 2.7.48 |
| symfony/security-bundle Packagist · Affected: v2.7.0, v2.7.1, v2.7.10, v2.7.11 (+44 more) | 2.7.48 |
| symfony/security-bundle Packagist · Affected: v2.8.0, v2.8.1, v2.8.10, v2.8.11 (+37 more) | 2.8.41 |
| symfony/security Packagist · Affected: v3.0.0, v3.0.1, v3.0.2, v3.0.3 (+56 more) | 3.3.17 |
| symfony/security-bundle Packagist · Affected: v4.0.0, v4.0.1, v4.0.10, v4.0.2 (+7 more) | 4.0.11 |
| symfony/security Packagist · Affected: v2.8.0, v2.8.1, v2.8.10, v2.8.11 (+37 more) | 2.8.41 |
| symfony/security-http Packagist · Affected: v3.0.0, v3.0.1, v3.0.2, v3.0.3 (+56 more) | 3.3.17 |
| symfony/security-bundle Packagist · Affected: v3.4.0, v3.4.1, v3.4.10, v3.4.2 (+7 more) | 3.4.11 |
| symfony/security Packagist · Affected: v4.0.0, v4.0.1, v4.0.10, v4.0.2 (+7 more) | 4.0.11 |
| symfony/security-http Packagist · Affected: v3.4.0, v3.4.1, v3.4.10, v3.4.2 (+7 more) | 3.4.11 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-352Cross-Site Request Forgery (CSRF)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-11406ADVISORY
- https://github.com/symfony/symfony/commit/319e1bdd43979d9c1559497de8d69adea28ab8d1WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2018-11406.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2018-11406.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2018-11406.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2018-11406.yamlWEB
- https://github.com/symfony/symfonyPACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G4XNBMFW33H47O5TZGA7JYCVLDBCXAJVWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBQK7JDXIELADIPGZIOUCZKMAJM5LSBWWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WU5N2TZFNGXDGMXMPP7LZCWTFLENF6WHWEB
- https://symfony.com/blog/cve-2018-11406-csrf-token-fixationWEB
- https://symfony.com/cve-2018-11406WEB
- https://www.debian.org/security/2018/dsa-4262WEB
Frequently Asked Questions
- What is CVE-2018-11406?
- Symfony CSRF Token Fixation. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2018-11406?
- CVE-2018-11406 affects symfony/symfony, symfony/security-http and symfony/security-bundle (and 1 more). It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-11406 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 50.5% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2019-18889CRITICAL
Symfony Unsafe Cache Serialization Could Enable RCE
- CVE-2019-10910CRITICAL
Symfony Service IDs Allow Injection
- CVE-2017-11365CRITICAL
Symfony Incorrect Access Control
- CVE-2026-45077HIGH
Symfony has Unauthenticated PHP Object Deserialization in MonologBridge server:log Listener
- CVE-2026-45063HIGH
Symfony Vulnerable to Identity Spoofing via Unanchored DN Regex in X509Authenticator
- CVE-2026-45073MEDIUM
Symfony Vulnerable to SQL Injection in PdoAdapter::doClear() via Unsanitized $prefix
- CVE-2026-47767MEDIUM
SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch
- CVE-2026-48784MEDIUM
Symfony: UrlGenerator Dot-Segment Encoding Skips Every Other Chained `../` or `./` → Generated URL Collapses Off-Route Under RFC 3986 Normalization