Skip to content
OpenAdvisories
Medium · 6.3 CVE-2022-24895 BIT-symfony-2022-24895EUVD-2023-0611GHSA-3gv2-29qc-v67m

Symfony vulnerable to Session Fixation of CSRF tokens

Published Feb 3, 2023 · Updated Mar 10, 2025 · 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.

Affected products

VendorProductAffectedFixed
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 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 symfony 5.4.20+dfsg-1 —
Debian 13 symfony 5.4.20+dfsg-1 —
Debian 12 symfony 5.4.20+dfsg-1 —
Debian 10 symfony 3.4.22+dfsg-2+deb10u2 DLA-3493-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS symfony No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS symfony 6.4.5+dfsg-3ubuntu3+esm1 USN-7272-1
Ubuntu Pro 22.04 LTS symfony 5.4.4+dfsg-1ubuntu8+esm1 USN-7272-1
Ubuntu Pro 20.04 LTS symfony 4.3.8+dfsg-1ubuntu1+esm2 USN-7272-1
Ubuntu Pro 18.04 LTS symfony No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
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

Advisories 2

References