CVE-2024-51996: Symfony has an Authentication Bypass via RememberMe
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.
Published Nov 13, 2024 · Updated Nov 14, 2024
Affected packages
symfony/security-http
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.3.0, < 5.4.47
- Fixed in
- 5.4.47
- Check
composer show symfony/security-http
symfony/security-http
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.0.0-BETA1, < 6.4.15
- Fixed in
- 6.4.15
- Check
composer show symfony/security-http
symfony/security-http
- Ecosystem
- Composer (PHP)
- Affected
- >= 7.0.0-BETA1, < 7.1.8
- Fixed in
- 7.1.8
- Check
composer show symfony/security-http
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to jderusse, m0xr4, stof.
References
- https://github.com/symfony/symfony/security/advisories/GHSA-cg23-qf8f-62rr
- https://github.com/symfony/symfony/commit/81354d392c5f0b7a52bcbd729d6f82501e94135a
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2024-51996.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-51996.yaml
- https://symfony.com/cve-2024-51996
- https://nvd.nist.gov/vuln/detail/CVE-2024-51996
- https://github.com/advisories/GHSA-cg23-qf8f-62rr
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-48489
Symfony: Security Firewall Bypass via failure_forward Subrequest: Unauthenticated Access to access_control-Protected GET Routes
highJun 15, 2026CVE-2026-45063
Symfony Vulnerable to Identity Spoofing via Unanchored DN Regex in X509Authenticator
high8.7May 27, 2026CVE-2026-45069
Symfony's OidcTokenHandler Accepts JWTs Missing aud/iss/exp Claims
medium4.9May 27, 2026CVE-2026-45074
Symfony's Cas2Handler Derives CAS service URL from Client Host Header → Cross-Service Ticket Replay
medium6.6May 27, 2026CVE-2026-45075
Symfony's HEAD Request Bypasses methods: ['GET'] Filter in #[IsGranted] / #[IsSignatureValid] / #[IsCsrfTokenValid]
high8.6May 27, 2026
