All reports
High

Symfony has an Authentication Bypass via RememberMe

Affected versions

Version ranges need review.

Affected versions
>= 6.0.0-BETA1, < 6.4.15
Fixed version
6.4.15
Affected versions
>= 7.0.0-BETA1, < 7.1.8
Fixed version
7.1.8
Affected versions
>=5.3.0,<5.4.0|>=5.4.0,<5.4.47|>=6.0.0,<6.1.0|>=6.1.0,<6.2.0|>=6.2.0,<6.3.0|>=6.3.0,<6.4.0|>=6.4.0,<6.4.15|>=7.0.0,<7.1.0|>=7.1.0,<7.1.8
Fixed version
Not reported
Affected versions
>= 5.3.0, < 5.4.47
Fixed version
5.4.47
Affected versions
>=5.3.0,<5.4.0|>=5.4.0,<5.4.47|>=6.0.0,<6.1.0|>=6.1.0,<6.2.0|>=6.2.0,<6.3.0|>=6.3.0,<6.4.0|>=6.4.0,<6.4.15|>=7.0.0,<7.1.0|>=7.1.0,<7.1.8
Fixed version
Not reported

Exploitation

CVE-2024-51996

Probability of exploitation in the next 30 days: 0.62%

FIRST EPSS · 2026-11-20

Description

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.

Links

Credits

  • jderusse
  • m0xr4
  • stof