{"id":"CVE-2022-24895","published":"2023-02-03T21:45:26Z","modified":"2025-03-10T21:16:31Z","title":"Symfony vulnerable to Session Fixation of CSRF tokens","vendor":"symfony","product":"symfony","tier":"tail","description":{"text":"Symfony is a PHP framework for web and console applications and a set of reusable PHP components. When authenticating users Symfony by default regenerates the session ID upon login, but preserves the rest of session attributes. Because this does not clear CSRF tokens upon login, this might enables same-site attackers to bypass the CSRF protection mechanism by performing an attack similar to a session-fixation. This issue has been fixed in the 4.4 branch.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00812,"percentile":0.57879,"provenance":"source"},"cwes":[{"id":"CWE-384","name":"Session Fixation"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-3gv2-29qc-v67m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/security-bundle/commit/076fd2088ada33d760758d98ff07ddedbf567946","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4","tags":["x_refsource_MISC"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2022-24895.yaml","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html","tags":[]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":11.58},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"symfony","affectedVersions":[{"vendor":"symfony","product":"symfony","versions":[">= 2.0.0, < 4.4.50",">= 5.0.0, < 5.4.20",">= 6.0.0, < 6.0.20",">= 6.1.0, < 6.1.12",">= 6.2.0, < 6.2.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-10T20:58:32.328719Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"symfony/security-bundle","vulnerableRanges":[">=2.0.0, <4.4.50",">=5.0.0, <5.4.20",">=6.0.0, <6.0.20",">=6.1.0, <6.1.12",">=6.2.0, <6.2.6"],"patched":["4.4.50","5.4.20","6.0.20","6.1.12","6.2.6"],"from":["GHSA-3gv2-29qc-v67m"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=2.0.0, <4.4.50",">=5.0.0, <5.4.20",">=6.0.0, <6.0.20",">=6.1.0, <6.1.12",">=6.2.0, <6.2.6"],"patched":["4.4.50","5.4.20","6.0.20","6.1.12","6.2.6"],"from":["GHSA-3gv2-29qc-v67m"],"provenance":"source"}],"summary":{"text":"Symfony, the PHP framework for web and console applications, fails to clear CSRF tokens when a user logs in, even though it regenerates the session ID, so the token state carries over across authentication. An attacker on the same site who can plant or fix a session can exploit this to bypass CSRF protection, with the attack requiring user interaction and no prior authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:33Z"},"euvd":{"id":"EUVD-2023-0611","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-symfony-cve-2018-11385","parents":[{"from":"CVE-2018-11385","to":"CVE-2022-24895","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/Security/Http/Session/SessionAuthenticationStrategy.php"],"commits":["https://github.com/symfony/symfony/commit/194caff28b56707ea98e746c6582c06acbb9bc3f","https://github.com/symfony/symfony/commit/fa5bf4b17d45ee32f41bd1a9abc3fb6c134ec89b","https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4"],"basis":"shared function","functions":["onAuthentication"]}]}],"packageHistory":[{"cve":"CVE-2018-11406","published":"2018-06-13","fixed":"4.0.11","kev":false},{"cve":"CVE-2018-11408","published":"2018-06-13","fixed":"4.0.11","kev":false},{"cve":"CVE-2021-41268","published":"2021-11-24","fixed":"5.3.12","kev":false,"link":{"from":"CVE-2021-41268","to":"CVE-2022-24895","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/security-bundle","fromFixed":"5.3.12","toFixed":"5.4.20","daysApart":436}]}},{"cve":"CVE-2022-24895","published":"2023-02-03","fixed":"6.2.6","kev":false},{"cve":"CVE-2024-50341","published":"2024-11-06","fixed":"7.1.3","kev":false,"link":{"from":"CVE-2022-24895","to":"CVE-2024-50341","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/security-bundle","fromFixed":"6.2.6","toFixed":"6.4.10","daysApart":642}]}}],"package":"Packagist:symfony/security-bundle"}}