Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/framework-bundle
  4. ›
  5. CVE-2022-23601

CVE-2022-23601: Cross-Site Request Forgery (CSRF)

February 1, 2022 (updated February 10, 2022)

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.

References

  • github.com/advisories/GHSA-vvmr-8829-6whx
  • github.com/symfony/symfony/commit/f0ffb775febdf07e57117aabadac96fa37857f50
  • github.com/symfony/symfony/security/advisories/GHSA-vvmr-8829-6whx
  • nvd.nist.gov/vuln/detail/CVE-2022-23601

Code Behaviors & Features

Detect and mitigate CVE-2022-23601 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

Version 5.3.14, version 5.4.3, version 6.0.3

Fixed versions

  • 5.3.15
  • 5.4.4
  • 6.0.4

Solution

Upgrade to versions 5.3.15, 5.4.4, 6.0.4 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)
  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

packagist/symfony/framework-bundle/CVE-2022-23601.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:05 +0000.