CVE-2024-51996: Authentication Bypass via persisted RememberMe cookie

Published Nov 13, 2024
·
Updated

Description

When consuming a persisted remember-me cookie, Symfony does not check if the username persisted in the database matches the username attached with the cookie, leading to authentication bypass.

Resolution

The PersistentRememberMeHandler class now ensures the submitted username is the cookie owner.

The patch for this issue is available here for branch 5.4.

Credits

We would like to thank Moritz Rauch - Pentryx AG for reporting the issue and Jérémy Derussé for providing the fix.

Other sources

CVE-2024-51996: Authentication Bypass via persisted RememberMe cookie

— Packagist

Symphony process is a module for the Symphony PHP framework which executes commands in sub-processes. When consuming a persisted remember-me cookie, Symfony does not check if the username persisted in the database matches the username attached with the cookie, leading to authentication bypass. This vulnerability is fixed in 5.4.47, 6.4.15, and 7.1.8.

— NVD

Affected Software

25 affected componentsFixes available
composer/symfony/security-http>=7.0.0-BETA1<7.1.8
7.1.8
composer/symfony/security-http>=6.0.0-BETA1<6.4.15
6.4.15
composer/symfony/security-http>=5.3.0<5.4.47
5.4.47
composer/symfony/symfony>=5.3.0, <5.4.0
composer/symfony/symfony>=5.4.0, <5.4.47
5.4.47
composer/symfony/symfony>=6.0.0, <6.1.0
composer/symfony/symfony>=6.1.0, <6.2.0
composer/symfony/symfony>=6.2.0, <6.3.0
composer/symfony/symfony>=6.3.0, <6.4.0
composer/symfony/symfony>=6.4.0, <6.4.15
6.4.15
composer/symfony/symfony>=7.0.0, <7.1.0
composer/symfony/symfony>=7.1.0, <7.1.8
7.1.8
composer/symfony/security-http>=5.3.0, <5.4.0
composer/symfony/security-http>=5.4.0, <5.4.47
5.4.47
composer/symfony/security-http>=6.0.0, <6.1.0
composer/symfony/security-http>=6.1.0, <6.2.0
composer/symfony/security-http>=6.2.0, <6.3.0
composer/symfony/security-http>=6.3.0, <6.4.0
composer/symfony/security-http>=6.4.0, <6.4.15
6.4.15
composer/symfony/security-http>=7.0.0, <7.1.0
composer/symfony/security-http>=7.1.0, <7.1.8
7.1.8
debian/symfony<5.4.23+dfsg-1+deb12u4
5.4.23+dfsg-1+deb12u4
debian/symfony<6.4.15+dfsg-1
6.4.15+dfsg-1
debian/symfony<6.4.15+dfsg-1
6.4.15+dfsg-1
debian/symfony
5.4.53+dfsg-0+deb12u16.4.41+dfsg-0+deb13u16.4.50+dfsg-0+deb13u17.4.23+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 7.1.8
  2. Upgrade

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

    Fixed in 6.4.15
  3. Upgrade

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

    Fixed in 5.4.47
  4. Upgrade

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

    Fixed in 5.4.47
  5. Upgrade

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

    Fixed in 6.4.15
  6. Upgrade

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

    Fixed in 7.1.8
  7. Upgrade

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

    Fixed in 5.4.23+dfsg-1+deb12u4
  8. Upgrade

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

    Fixed in 6.4.15+dfsg-1
  9. 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.50+dfsg-0+deb13u1Fixed in 7.4.23+dfsg-1
  10. Upgrade

    Upgrade Symfony to a version that resolves this vulnerability.

    Patch 81354d392c5f0b7a52bcbd729d6f82501e94135a

Event History

Nov 13, 2024
Advisory Published
via Packagist·08:00 AM
Data Sourced
via Packagist·08:00 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·04:18 PM
Data Sourced
via MITRE·04:18 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·05:15 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·06:29 PM
Apr 14, 2025
Exploit Published
via GitHub·09:02 PM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-51996?

CVE-2024-51996 is classified as a high severity vulnerability due to its potential for authentication bypass.

2

How do I fix CVE-2024-51996?

To resolve CVE-2024-51996, upgrade the symfony/security-http package to version 7.1.8, 6.4.15, or 5.4.47.

3

What causes CVE-2024-51996?

CVE-2024-51996 is caused by Symfony not verifying if the username in a persisted remember-me cookie matches the username in the database.

4

Which versions of Symfony are affected by CVE-2024-51996?

Versions of Symfony between 7.0.0-BETA1 and 7.1.8, 6.0.0-BETA1 and 6.4.15, and 5.3.0 and 5.4.47 are affected by CVE-2024-51996.

5

Is CVE-2024-51996 a persistent vulnerability?

Yes, CVE-2024-51996 is considered persistent as it affects the functioning of persisted remember-me cookies in Symfony.

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