# CVE-2022-24895: Symfony vulnerable to Session Fixation of CSRF tokens

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 58% of CVEs (2026-12-01)
- Published: 2023-02-01T18:48:06.000Z
- Modified: 2026-06-17T04:32:45.110Z
- Also known as: GHSA-3gv2-29qc-v67m, BIT-SYMFONY-2022-24895
- Weaknesses: CWE-384, CWE-613
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- symfony symfony: >= 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
- symfony/security-bundle (Packagist): from 2.0.0 before 4.4.50; from 5.0.0 before 5.4.20; from 6.0.0 before 6.0.20; from 6.1.0 before 6.1.12; from 6.2.0 before 6.2.6
- symfony/symfony (Packagist): from 2.0.0 before 4.4.50; from 5.0.0 before 5.4.20; from 6.0.0 before 6.0.20; from 6.1.0 before 6.1.12; from 6.2.0 before 6.2.6
- sensiolabs symfony: from 2.0.0 before 4.4.50; from 5.0.0 before 5.4.20; from 6.0.0 before 6.0.20; from 6.1.0 before 6.1.12; from 6.2.0 before 6.2.6
- symfony (Bitnami): from 2.0.0 before 4.4.50; from 5.0.0 before 5.4.20; from 6.0.0 before 6.0.20; from 6.1.0 before 6.1.12; from 6.2.0 before 6.2.6

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/symfony/symfony/security/advisories/GHSA-3gv2-29qc-v67m> (patch, third-party-advisory, web)
- <https://github.com/symfony/security-bundle/commit/076fd2088ada33d760758d98ff07ddedbf567946> (patch, web)
- <https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4> (patch, web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2022-24895.yaml> (issue-tracking, web)
- <https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24895> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-24895.yaml> (web)
- <https://github.com/symfony/symfony> (package)
- <https://symfony.com/cve-2022-24895> (web)

## Sources

- CVE List: [CVE-2022-24895](https://www.cve.org/CVERecord?id=CVE-2022-24895), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-3gv2-29qc-v67m](https://github.com/advisories/GHSA-3gv2-29qc-v67m), CC-BY-4.0, modified 2025-02-13
- NVD: [CVE-2022-24895](https://nvd.nist.gov/vuln/detail/CVE-2022-24895), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-SYMFONY-2022-24895](https://osv.dev/vulnerability/BIT-SYMFONY-2022-24895), Apache-2.0, modified 2024-03-06

---

Page: https://cve.day/CVE-2022-24895 · Whole record: https://cve.day/CVE-2022-24895.json · Rebuilt by cve.day 2026-11-25T22:58:18.503Z
