{"id":"GHSA-vvmr-8829-6whx","summary":"CSRF token missing in Symfony","details":"Description\n-----------\n\nThe 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.\nWhen 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.\n\nIn 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.\n\nResolution\n----------\n\nSymfony restored the default configuration to enable the CSRF protection by default.\n\nThe patch for this issue is available [here](https://github.com/symfony/symfony/commit/f0ffb775febdf07e57117aabadac96fa37857f50) for branch 5.3.\n\nCredits\n-------\n\nWe would like to thank Catalin Dan and David Lochner for reporting the issue and Jérémy Derussé for fixing the issue.","aliases":["BIT-symfony-2022-23601","CVE-2022-23601"],"modified":"2024-04-22T18:47:10.410268Z","published":"2022-02-01T00:46:57Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-01-31T22:03:31Z","nvd_published_at":"2022-02-01T13:15:00Z","cwe_ids":["CWE-352"]},"references":[{"type":"WEB","url":"https://github.com/symfony/symfony/security/advisories/GHSA-vvmr-8829-6whx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23601"},{"type":"WEB","url":"https://github.com/symfony/symfony/commit/f0ffb775febdf07e57117aabadac96fa37857f50"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/framework-bundle/CVE-2022-23601.yaml"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-23601.yaml"},{"type":"WEB","url":"https://github.com/symfony/symfony"},{"type":"WEB","url":"https://symfony.com/cve-2022-23601"}],"affected":[{"package":{"name":"symfony/framework-bundle","ecosystem":"Packagist","purl":"pkg:composer/symfony/framework-bundle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.14"},{"fixed":"5.3.15"}]}],"versions":["5.3.14","v5.3.14"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-vvmr-8829-6whx/GHSA-vvmr-8829-6whx.json"}},{"package":{"name":"symfony/framework-bundle","ecosystem":"Packagist","purl":"pkg:composer/symfony/framework-bundle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.4.3"},{"fixed":"5.4.4"}]}],"versions":["5.4.3","v5.4.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-vvmr-8829-6whx/GHSA-vvmr-8829-6whx.json"}},{"package":{"name":"symfony/framework-bundle","ecosystem":"Packagist","purl":"pkg:composer/symfony/framework-bundle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.3"},{"fixed":"6.0.4"}]}],"versions":["6.0.3","v6.0.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-vvmr-8829-6whx/GHSA-vvmr-8829-6whx.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"}]}