CVE-2022-24895 – symfony/security-bundle
Package
Manager: composer
Name: symfony/security-bundle
Vulnerable Version: >=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
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
EPSS: 0.00018 pctl0.02898
Details
Symfony vulnerable to Session Fixation of CSRF tokens Description ----------- 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](https://canitakeyoursubdomain.name/) to bypass the CSRF protection mechanism by performing an attack similar to a session-fixation. Resolution ---------- Symfony removes all CSRF tokens from the session on successful login. The patch for this issue is available [here](https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4) for branch 4.4. Credits ------- We would like to thank Marco Squarcina for reporting the issue and Nicolas Grekas for fixing it.
Metadata
Created: 2023-02-01T18:48:06Z
Modified: 2025-02-13T18:36:42Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-3gv2-29qc-v67m/GHSA-3gv2-29qc-v67m.json
CWE IDs: ["CWE-384", "CWE-613"]
Alternative ID: GHSA-3gv2-29qc-v67m
Finding: F280
Auto approve: 1