CVE-2022-23601Sensiolabs Symfony
High 8.8 No auth needed
Follow: this CVE · Sensiolabs · Sensiolabs Symfony We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 42
- Auth required
- No
- Published
- Feb 1, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-352
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Symfony.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | symfony/framework-bundle |
≥ 5.3.14 < 5.3.15 |
5.3.15 |
composer require "symfony/framework-bundle:^5.3.15" |
| Packagist | symfony/framework-bundle |
≥ 5.4.3 < 5.4.4 |
5.4.4 |
composer require "symfony/framework-bundle:^5.4.4" |
| Packagist | symfony/framework-bundle |
≥ 6.0.3 < 6.0.4 |
6.0.4 |
composer require "symfony/framework-bundle:^6.0.4" |
Per OSV / GitHub Advisories (GHSA-vvmr-8829-6whx). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| sensiolabs | symfony | < 5.3.15 |
| sensiolabs | symfony | ≥ 5.4.0 < 5.4.4 |
| sensiolabs | symfony | ≥ 6.0.0 < 6.0.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory