CVE-2024-51996 Symphony has an Authentication Bypass via RememberMe

High 7.5 Published Updated

Attackers can bypass authentication by exploiting a flaw in Symfony's remember-me cookie validation, allowing unauthorized access to user accounts.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-51996?

CVE-2024-51996 is a high-severity authentication bypass vulnerability in symfony, published on 13 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-289, CWE-287

Which versions are affected by CVE-2024-51996?

6 open source packages ship an affected version, including symfony/security-http.

PackageAffectedFixed in
symfony/security-http PackagistFrom 5.3.05.4.47
symfony/security-http PackagistFrom 5.3.05.4.47
symfony/security-http PackagistFrom 6.0.0-BETA16.4.15
symfony/security-http PackagistFrom 6.0.0-BETA16.4.15
symfony/security-http PackagistFrom 7.0.0-BETA17.1.8
symfony/security-http PackagistFrom 7.0.0-BETA17.1.8

How do I fix CVE-2024-51996?

Upgrade symfony/security-http to a fixed version for your release line: 5.4.47, 6.4.15 or 7.1.8.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2024-51996 being exploited?

There is no known exploitation of CVE-2024-51996 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as DEBIAN-CVE-2024-51996, DSA-5813-1, GHSA-cg23-qf8f-62rr, UBUNTU-CVE-2024-51996.

Is CVE-2024-51996 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free