CVE-2022-24895: Possible CSRF token fixation

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

59 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
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
composer/symfony/symfony>=2.0.0, <2.1.0
composer/symfony/symfony>=2.1.0, <2.2.0
composer/symfony/symfony>=2.2.0, <2.3.0
composer/symfony/symfony>=2.3.0, <2.4.0
composer/symfony/symfony>=2.4.0, <2.5.0
composer/symfony/symfony>=2.5.0, <2.6.0
composer/symfony/symfony>=2.6.0, <2.7.0
composer/symfony/symfony>=2.8.0, <3.0.0
composer/symfony/symfony>=3.0.0, <3.1.0
composer/symfony/symfony>=3.1.0, <3.2.0
composer/symfony/symfony>=3.2.0, <3.3.0
composer/symfony/symfony>=3.3.0, <3.4.0
composer/symfony/symfony>=3.4.0, <4.0.0
composer/symfony/symfony>=4.0.0, <4.1.0
composer/symfony/symfony>=4.1.0, <4.2.0
composer/symfony/symfony>=4.2.0, <4.3.0
composer/symfony/symfony>=4.4.0, <4.4.50
4.4.50
composer/symfony/symfony>=5.0.0, <5.1.0
composer/symfony/symfony>=5.1.0, <5.2.0
composer/symfony/symfony>=5.3.0, <5.4.0
composer/symfony/symfony>=5.4.0, <5.4.20
5.4.20
composer/symfony/symfony>=6.0.0, <6.0.20
6.0.20
composer/symfony/symfony>=6.1.0, <6.1.12
6.1.12
composer/symfony/symfony>=6.2.0, <6.2.6
6.2.6
composer/symfony/security-bundle>=2.0.0, <2.1.0
composer/symfony/security-bundle>=2.1.0, <2.2.0
composer/symfony/security-bundle>=2.2.0, <2.3.0
composer/symfony/security-bundle>=2.3.0, <2.4.0
composer/symfony/security-bundle>=2.4.0, <2.5.0
composer/symfony/security-bundle>=2.5.0, <2.6.0
composer/symfony/security-bundle>=2.6.0, <2.7.0
composer/symfony/security-bundle>=2.8.0, <3.0.0
composer/symfony/security-bundle>=3.0.0, <3.1.0
composer/symfony/security-bundle>=3.1.0, <3.2.0
composer/symfony/security-bundle>=3.2.0, <3.3.0
composer/symfony/security-bundle>=3.3.0, <3.4.0
composer/symfony/security-bundle>=3.4.0, <4.0.0
composer/symfony/security-bundle>=4.0.0, <4.1.0
composer/symfony/security-bundle>=4.1.0, <4.2.0
composer/symfony/security-bundle>=4.2.0, <4.3.0
composer/symfony/security-bundle>=4.4.0, <4.4.50
4.4.50
composer/symfony/security-bundle>=5.0.0, <5.1.0
composer/symfony/security-bundle>=5.1.0, <5.2.0
composer/symfony/security-bundle>=5.3.0, <5.4.0
composer/symfony/security-bundle>=5.4.0, <5.4.20
5.4.20
composer/symfony/security-bundle>=6.0.0, <6.0.20
6.0.20
composer/symfony/security-bundle>=6.1.0, <6.1.12
6.1.12
composer/symfony/security-bundle>=6.2.0, <6.2.6
6.2.6
debian/symfony<5.4.20+dfsg-1
5.4.20+dfsg-1
debian/symfony<5.4.20+dfsg-1
5.4.20+dfsg-1
debian/symfony<5.4.20+dfsg-1
5.4.20+dfsg-1
debian/symfony
5.4.53+dfsg-0+deb12u16.4.41+dfsg-0+deb13u16.4.49+dfsg-0+deb13u17.4.22+dfsg-17.4.23+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 4.4.50
  2. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 5.4.20
  3. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 6.0.20
  4. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 6.1.12
  5. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 6.2.6
  6. Upgrade

    Upgrade composer/symfony/security-bundle to a version that resolves this vulnerability.

    Fixed in 4.4.50
  7. Upgrade

    Upgrade composer/symfony/security-bundle to a version that resolves this vulnerability.

    Fixed in 5.4.20
  8. Upgrade

    Upgrade composer/symfony/security-bundle to a version that resolves this vulnerability.

    Fixed in 6.0.20
  9. Upgrade

    Upgrade composer/symfony/security-bundle to a version that resolves this vulnerability.

    Fixed in 6.1.12
  10. Upgrade

    Upgrade composer/symfony/security-bundle to a version that resolves this vulnerability.

    Fixed in 6.2.6
  11. Upgrade

    Upgrade debian/symfony to a version that resolves this vulnerability.

    Fixed in 5.4.20+dfsg-1
  12. Upgrade

    Upgrade debian/symfony to a version that resolves this vulnerability.

    Fixed in 5.4.53+dfsg-0+deb12u1Fixed in 6.4.41+dfsg-0+deb13u1Fixed in 6.4.49+dfsg-0+deb13u1Fixed in 7.4.22+dfsg-1Fixed in 7.4.23+dfsg-1
  13. Upgrade

    Upgrade Symfony to a version that resolves this vulnerability.

    Fixed in 4.4

Event History

Feb 1, 2023
Advisory Published
08:00 AM
Data Sourced
via Packagist·08:00 AM
DescriptionSeverityAffected Software
Feb 3, 2023
CVE Published
via MITRE·09:45 PM
Data Sourced
via MITRE·09:45 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·10:15 PM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

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