CVE-2022-23601
CVE-2022-23601: CSRF token missing in forms
Overview
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.
Source: OX vulnerability database
Severity
8.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-352
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Composer (PHP) | symfony/framework-bundle | >=5.3.14, <5.3.15>=5.4.3, <5.4.4>=6.0.3, <6.0.4 | 5.3.155.4.46.0.4 |
| Composer (PHP) | symfony/symfony | >=5.3.14, <5.3.15>=5.4.3, <5.4.4>=6.0.3, <6.0.4 | No fix yet |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/framework-bundle/CVE-2022-23601.yaml
- github.com https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-23601.yaml
- github.com https://github.com/symfony/symfony
- github.com https://github.com/symfony/symfony/commit/f0ffb775febdf07e57117aabadac96fa37857f50
- github.com https://github.com/symfony/symfony/security/advisories/GHSA-vvmr-8829-6whx
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-23601
- symfony.com https://symfony.com/cve-2022-23601
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.