{"id":"CVE-2022-24895","aliases":["BIT-symfony-2022-24895","GHSA-3gv2-29qc-v67m"],"url":"https://o3.security/vulnerability/CVE-2022-24895","summary":"Symfony vulnerable to Session Fixation of CSRF tokens","details":"Description\n-----------\n\nWhen 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](https://canitakeyoursubdomain.name/) to bypass the CSRF protection mechanism by performing an attack similar to a session-fixation.\n\nResolution\n----------\n\nSymfony removes all CSRF tokens from the session on successful login.\n\nThe patch for this issue is available [here](https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4) for branch 4.4.\n\nCredits\n-------\n\nWe would like to thank Marco Squarcina for reporting the issue and Nicolas Grekas for fixing it.","published":"2023-02-03T21:45:26.887Z","modified":"2026-10-28T02:31:12.008076152Z","cvss":{"score":6.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"},"epss":{"score":0.0079,"percentile":0.54235,"asOf":"2026-09-13"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"symfony/security-bundle","fixedVersion":"4.4.50"},{"ecosystem":"Packagist","name":"symfony/security-bundle","fixedVersion":"5.4.20"},{"ecosystem":"Packagist","name":"symfony/security-bundle","fixedVersion":"6.0.20"},{"ecosystem":"Packagist","name":"symfony/security-bundle","fixedVersion":"6.1.12"},{"ecosystem":"Packagist","name":"symfony/security-bundle","fixedVersion":"6.2.6"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"4.4.50"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"5.4.20"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"6.0.20"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"6.1.12"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"6.2.6"}],"fix":{"url":"https://github.com/symfony/security-bundle/commit/076fd2088ada33d760758d98ff07ddedbf567946","label":"symfony/security-bundle@076fd20"},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24895.json"},{"type":"ADVISORY","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2022-24895.yaml"},{"type":"ADVISORY","url":"https://github.com/symfony/symfony/security/advisories/GHSA-3gv2-29qc-v67m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24895"},{"type":"FIX","url":"https://github.com/symfony/security-bundle/commit/076fd2088ada33d760758d98ff07ddedbf567946"},{"type":"FIX","url":"https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-24895.yaml"},{"type":"PACKAGE","url":"https://github.com/symfony/symfony"},{"type":"WEB","url":"https://symfony.com/cve-2022-24895"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:31:12.008076152Z"}}