CSRF token missing in Symfony
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Tampering
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-352.
Summary
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony form component provides a CSRF protection mechanism by using a random token injected in the form and using the session to store and control the token submitted by the user. When using the FrameworkBundle, this protection can be enabled or disabled with the configuration. If the configuration is not specified, by default, the mechanism is enabled as long as the session is enabled. In a recent change in the way the configuration is loaded, the default behavior has been dropped and, as a result, the CSRF protection is not enabled in form when not explicitly enabled, which makes the application sensible to CSRF attacks. This issue has been resolved in the patch versions listed and users are advised to update. There are no known workarounds for this issue.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| symfony | symfony | 5.3.14; 5.4.3; 6.0.3 | — | No fix listed | CNA |
| — | symfony/framework-bundle (Packagist) | 5.3.14 to before 5.3.15 | 5.3.15 | Patch available | GHSA-vvmr-8829-6whx |
| — | symfony/framework-bundle (Packagist) | 5.4.3 to before 5.4.4 | 5.4.4 | Patch available | GHSA-vvmr-8829-6whx |
| — | symfony/framework-bundle (Packagist) | 6.0.3 to before 6.0.4 | 6.0.4 | Patch available | GHSA-vvmr-8829-6whx |
- symfony Vendorsymfony Affected 5.3.14; 5.4.3; 6.0.3 Fixed in — No fix listed CNA
- symfony/framework-bundle (Packagist) Vendor— Affected 5.3.14 to before 5.3.15 Fixed in 5.3.15 Patch available GHSA-vvmr-8829-6whx
- symfony/framework-bundle (Packagist) Vendor— Affected 5.4.3 to before 5.4.4 Fixed in 5.4.4 Patch available GHSA-vvmr-8829-6whx
- symfony/framework-bundle (Packagist) Vendor— Affected 6.0.3 to before 6.0.4 Fixed in 6.0.4 Patch available GHSA-vvmr-8829-6whx
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* | before 5.3.15; 5.4.0 to before 5.4.4; 6.0.0 to before 6.0.4 | Vulnerable | sensiolabs |
- cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* Versions before 5.3.15; 5.4.0 to before 5.4.4; 6.0.0 to before 6.0.4 Vulnerable ·sensiolabs
Remediation
- Fix · GHSA-vvmr-8829-6whx symfony/framework-bundle (Packagist) Fixed in 5.3.15 Advisory →
- Fix · GHSA-vvmr-8829-6whx symfony/framework-bundle (Packagist) Fixed in 5.4.4 Advisory →
- Fix · GHSA-vvmr-8829-6whx symfony/framework-bundle (Packagist) Fixed in 6.0.4 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2022-23601
- 2026-10-03 Alias added: GHSA-vvmr-8829-6whx
References
Patch 2
More symfony vulnerabilities
- TI-2024-33775 Ability to change environment from query in symfony/runtime CVSS 3.1HIGH 7.3
- TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
- TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
- TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
- TI-2026-35851 Incorrect authorization in symfony CVSS 4.0HIGH 8.7
- TI-2026-35264 Improper input validation in symfony CVSS 4.0HIGH 8.3
Sources
- CVE-2022-23601 · CVE Program
- CVE-2022-23601 · NVD
- FIRST EPSS
- GHSA-vvmr-8829-6whx · GitHub Advisory Database · CC BY 4.0
- CVE-2022-23601 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences