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

Published Feb 1, 2023
·
Updated

CVE-2022-24895: Possible CSRF token fixation

Other sources

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.

Launchpad

Affected Software

8 affected componentsFixes available
composer/symfony/symfony>=2.0.0, <2.1.0, >=2.1.0, <2.2.0, >=2.2.0, <2.3.0, >=2.3.0, <2.4.0, >=2.4.0, <2.5.0, >=2.5.0, <2.6.0, >=2.6.0, <2.7.0, >=2.7.0, <2.8.0, >=2.8.0, <3.0.0, >=3.0.0, <3.1.0, >=3.1.0, <3.2.0, >=3.2.0, <3.3.0, >=3.3.0, <3.4.0, >=3.4.0, <4.0.0, >=4.0.0, <4.1.0, >=4.1.0, <4.2.0, >=4.2.0, <4.3.0, >=4.3.0, <4.4.0, >=4.4.0, <4.4.50, >=5.0.0, <5.1.0, >=5.1.0, <5.2.0, >=5.2.0, <5.3.0, >=5.3.0, <5.4.0, >=5.4.0, <5.4.20, >=6.0.0, <6.0.20, >=6.1.0, <6.1.12, >=6.2.0, <6.2.6
composer/symfony/security-bundle>=2.0.0, <2.1.0, >=2.1.0, <2.2.0, >=2.2.0, <2.3.0, >=2.3.0, <2.4.0, >=2.4.0, <2.5.0, >=2.5.0, <2.6.0, >=2.6.0, <2.7.0, >=2.7.0, <2.8.0, >=2.8.0, <3.0.0, >=3.0.0, <3.1.0, >=3.1.0, <3.2.0, >=3.2.0, <3.3.0, >=3.3.0, <3.4.0, >=3.4.0, <4.0.0, >=4.0.0, <4.1.0, >=4.1.0, <4.2.0, >=4.2.0, <4.3.0, >=4.3.0, <4.4.0, >=4.4.0, <4.4.50, >=5.0.0, <5.1.0, >=5.1.0, <5.2.0, >=5.2.0, <5.3.0, >=5.3.0, <5.4.0, >=5.4.0, <5.4.20, >=6.0.0, <6.0.20, >=6.1.0, <6.1.12, >=6.2.0, <6.2.6
debian/symfony
4.4.19+dfsg-2+deb11u65.4.23+dfsg-1+deb12u46.4.18+dfsg-1
SensioLabs Symfony>=2.0.0<4.4.50
SensioLabs Symfony>=5.0.0<5.4.20
SensioLabs Symfony>=6.0.0<6.0.20
SensioLabs Symfony>=6.1.0<6.1.12
SensioLabs Symfony>=6.2.0<6.2.6

Event History

Feb 1, 2023
Advisory Published
08:00 AM
Feb 3, 2023
CVE Published
via MITRE·09:45 PM
Data Sourced
via MITRE·09:45 PM
DescriptionSeverityWeakness
Feb 18, 2025
Data Sourced
via Ubuntu·08:23 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·08:23 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this security issue?

The vulnerability ID for this security issue is CVE-2022-24895.

2

What is the severity of CVE-2022-24895?

The severity of CVE-2022-24895 is high (8.8).

3

What is the affected software for CVE-2022-24895?

The affected software for CVE-2022-24895 is Symfony versions from 2.0.0 to 6.2.6.

4

How does this vulnerability occur?

This vulnerability occurs because Symfony does not clear CSRF tokens upon login.

5

Is there a fix or patch available for CVE-2022-24895?

Yes, a fix is available for CVE-2022-24895. It is recommended to update Symfony to a version that includes the patch.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203