Vulnerability · Published Feb 3, 2023 · Assigned by GitHub_M

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

Medium 6.3

In plain English

A medium-severity session fixation in symfony from symfony. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)0.8%top 43.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12symfony5.4.20+dfsg-1DEBIAN-CVE-2022-24895
Debian:13symfony5.4.20+dfsg-1DEBIAN-CVE-2022-24895
Debian:14symfony5.4.20+dfsg-1DEBIAN-CVE-2022-24895
Packagistsymfony/security-bundle6.1.12GHSA-3gv2-29qc-v67m
Packagistsymfony/security-bundle6.2.6GHSA-3gv2-29qc-v67m
Packagistsymfony/security-bundle4.4.50GHSA-3gv2-29qc-v67m
Packagistsymfony/security-bundle5.4.20GHSA-3gv2-29qc-v67m
Packagistsymfony/security-bundle6.0.20GHSA-3gv2-29qc-v67m
Packagistsymfony/symfony6.1.12GHSA-3gv2-29qc-v67m
Packagistsymfony/symfony6.2.6GHSA-3gv2-29qc-v67m
Packagistsymfony/symfony6.0.20GHSA-3gv2-29qc-v67m
Packagistsymfony/symfony5.4.20GHSA-3gv2-29qc-v67m
Packagistsymfony/symfony4.4.50GHSA-3gv2-29qc-v67m

Affected products (as reported)

VendorProductVersions
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

Weakness: CWE-384 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

References