Vulnerability · Published Feb 1, 2022 · Assigned by GitHub_M
CVE-2022-23601CSRF token missing in Symfony
High 8.1
In plain English
A high-severity cross-site request forgery in symfony from symfony. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | symfony/framework-bundle | 5.3.15 | GHSA-vvmr-8829-6whx |
| Packagist | symfony/framework-bundle | 5.4.4 | GHSA-vvmr-8829-6whx |
| Packagist | symfony/framework-bundle | 6.0.4 | GHSA-vvmr-8829-6whx |
Affected products (as reported)
Weakness: CWE-352 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N