Home / symfony / symfony / CVE-2022-24895
CVE-2022-24895: is it exploited, and which versions of symfony are affected and fixed?
CVE-2022-24895 is a session fixation vulnerability in symfony. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: symfony/security-bundle from 2.0.0 before 4.4.50, symfony/security-bundle from 5.0.0 before 5.4.20, symfony/security-bundle from 6.0.0 before 6.0.20 and 7 more (GitHub advisory GHSA-3gv2-29qc-v67m). Fixed in 4.4.50, 5.4.20, 6.0.20, 6.1.12 and 1 more (GitHub advisory GHSA-3gv2-29qc-v67m). Severity: Medium (6.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:41 UTC.
What is CVE-2022-24895?
Symfony vulnerable to Session Fixation of CSRF tokens
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.
From the CVE record by GitHub_M, last updated March 10, 2025, 21:16 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| 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 |
As the CVE record by GitHub_M states it, last updated March 10, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | symfony/security-bundle | >= 2.0.0, < 4.4.50 | 4.4.50 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | >= 5.0.0, < 5.4.20 | 5.4.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | >= 6.0.0, < 6.0.20 | 6.0.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | >= 6.1.0, < 6.1.12 | 6.1.12 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | >= 6.2.0, < 6.2.6 | 6.2.6 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | >= 2.0.0, < 4.4.50 | 4.4.50 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | >= 5.0.0, < 5.4.20 | 5.4.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | >= 6.0.0, < 6.0.20 | 6.0.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | >= 6.1.0, < 6.1.12 | 6.1.12 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | >= 6.2.0, < 6.2.6 | 6.2.6 | GHSA-3gv2-29qc-v67m |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 13, 2025. Summary: Symfony vulnerable to Session Fixation of CSRF tokens.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| sensiolabs | symfony | from 2.0.0 before 4.4.50 | application |
| sensiolabs | symfony | from 5.0.0 before 5.4.20 | application |
| sensiolabs | symfony | from 6.0.0 before 6.0.20 | application |
| sensiolabs | symfony | from 6.1.0 before 6.1.12 | application |
| sensiolabs | symfony | from 6.2.0 before 6.2.6 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:32 UTC.
How severe is CVE-2022-24895?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L | GitHub_M |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-24895 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, March 10, 2025)
- EPSS
- 0.81% probability of exploitation activity in the next 30 days, percentile 58.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/symfony/symfony/security/advisories/GHSA-3gv2-29qc-v67m x_refsource_CONFIRM
- https://github.com/symfony/security-bundle/commit/076fd2088ada33d760758d98ff07ddedbf567946 x_refsource_MISC
- https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4 x_refsource_MISC
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2022-24895.yaml x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html
When was it published, and where is the official record?
- Reserved
- February 10, 2022
- Published
- February 3, 2023, 21:45 UTC
- CVE record updated
- March 10, 2025, 21:16 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:32 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:41 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect symfony?
- Nov 6, 2026CVE-2026-118514 symfony: incorrect authorization
- Jul 14, 2026CVE-2026-48761 symfony: cross-site scripting (XSS)
- Jul 14, 2026CVE-2026-48747 symfony: cryptographic signature not verified
- Jul 14, 2026CVE-2026-48489 symfony: incorrect authorization
- Jul 14, 2026CVE-2026-48760 symfony: user Interface (UI) Misrepresentation of Critical Information
- Jul 14, 2026CVE-2026-48736 symfony: incomplete List of Disallowed Inputs
- Jul 14, 2026CVE-2026-48784 symfony: improper Encoding or Decoding of Data
- Jul 14, 2026CVE-2026-45068 symfony: argument injection
Questions about CVE-2022-24895
Is CVE-2022-24895 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.81% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of symfony are affected by CVE-2022-24895?
symfony/security-bundle from 2.0.0 before 4.4.50, symfony/security-bundle from 5.0.0 before 5.4.20, symfony/security-bundle from 6.0.0 before 6.0.20, symfony/security-bundle from 6.1.0 before 6.1.12, symfony/security-bundle from 6.2.0 before 6.2.6, symfony/symfony from 2.0.0 before 4.4.50 and 4 more, per the GitHub advisory GHSA-3gv2-29qc-v67m. The tables above give every range the sources list.
Which version fixes CVE-2022-24895?
4.4.50, 5.4.20, 6.0.20, 6.1.12 and 6.2.6, per the GitHub advisory GHSA-3gv2-29qc-v67m. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-24895?
Medium (6.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-24895?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.