CVE-2022-23601: CSRF token missing in Symfony
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.35496%
CWE
Published
2/1/2022
Updated
4/22/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
symfony/framework-bundle | composer | = 5.3.14 | 5.3.15 |
symfony/framework-bundle | composer | = 5.4.3 | 5.4.4 |
symfony/framework-bundle | composer | = 6.0.3 | 6.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from incorrect execution order in dependency injection configuration. The commit f0ffb775 shows critical changes:- 1) Moving form configuration registration AFTER CSRF configuration- 2) Adding explicit test cases for CSRF default enablement- 3) Reordering component initialization dependenciesThe original code processed form configuration (lines 314-333 in diff) before registering CSRF protection (line 462), preventing proper default CSRF enablement. The vulnerable function is the load() method where this misordering occurred, making CSRF protection contingent on explicit configuration rather than session status.