{"id":"CVE-2022-23601","aliases":["CVE-2022-23601","GHSA-vvmr-8829-6whx","BIT-SYMFONY-2022-23601"],"related":[],"kind":"vulnerability","state":"published","title":"CSRF token missing in Symfony","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Symfony es un framework PHP para aplicaciones web y de consola y un conjunto de componentes PHP reusables. El componente de formulario de Symfony proporciona un mecanismo de protección CSRF mediante el uso de un token aleatorio inyectado en el formulario y usando la sesión para almacenar y controlar el token enviado por el usuario. Cuando es usado el FrameworkBundle, esta protección puede ser habilitada o deshabilitada con la configuración. Si no es especificada la configuración, por defecto, el mecanismo está habilitado siempre que la sesión esté habilitada. En un cambio reciente en la forma de cargar la configuración, el comportamiento por defecto ha sido abandonado y, como resultado, la protección de tipo CSRF no está habilitada en forma cuando no está explícitamente habilitada, lo que hace que la aplicación sea vulnerable a ataques de tipo CSRF. Este problema ha sido resuelto en las versiones de parche indicadas y se aconseja a usuarios que actualicen. No se conocen medidas de mitigación adicionales para este problema","source":"nvd"}],"published":"2022-02-01T00:46:57.000Z","modified":"2026-06-17T04:30:27.297Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"version":"5.3.14","status":"affected"},{"version":"5.4.3","status":"affected"},{"version":"6.0.3","status":"affected"}],"vendor":"symfony","product":"symfony","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.3.14","status":"affected","fixed":"5.3.15"}],"ecosystem":"Packagist","package":"symfony/framework-bundle","purl":"pkg:composer/symfony/framework-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.4.3","status":"affected","fixed":"5.4.4"}],"ecosystem":"Packagist","package":"symfony/framework-bundle","purl":"pkg:composer/symfony/framework-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.3","status":"affected","fixed":"6.0.4"}],"ecosystem":"Packagist","package":"symfony/framework-bundle","purl":"pkg:composer/symfony/framework-bundle","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.3.15"},{"status":"affected","introduced":"5.4.0","fixed":"5.4.4"},{"status":"affected","introduced":"6.0.0","fixed":"6.0.4"}],"vendor":"sensiolabs","product":"symfony","cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.3.15"},{"type":"semver","introduced":"5.4.0","status":"affected","fixed":"5.4.4"},{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.0.4"}],"ecosystem":"Bitnami","package":"symfony","purl":"pkg:bitnami/symfony","source":"bitnami"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-vvmr-8829-6whx","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/symfony/symfony/commit/f0ffb775febdf07e57117aabadac96fa37857f50","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23601","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/framework-bundle/CVE-2022-23601.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-23601.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/symfony","tags":["web"],"sources":["ghsa"]},{"url":"https://symfony.com/cve-2022-23601","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-23T15:56:46.467Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-23601","url":"https://www.cve.org/CVERecord?id=CVE-2022-23601","licence":"CVE Terms of Use","modified":"2025-04-23T19:08:33.728Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vvmr-8829-6whx","url":"https://github.com/advisories/GHSA-vvmr-8829-6whx","licence":"CC-BY-4.0","modified":"2024-04-22T19:02:35.989Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-23601","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23601","licence":"Public domain","modified":"2026-06-17T04:30:27.297Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-SYMFONY-2022-23601","url":"https://osv.dev/vulnerability/BIT-SYMFONY-2022-23601","licence":"Apache-2.0","modified":"2024-03-06T11:25:28.861Z"}],"updatedAt":"2026-11-25T22:58:09.457Z","epss":{"score":0.00585,"percentile":0.49325,"date":"2026-12-02T12:00:21.000Z"}}