CVE-2024-51996
JSON

7.5high

Symphony has an Authentication Bypass via RememberMe

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.62% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-cg23-qf8f-62rr

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.

Affected

Product or packageVersionsReported by
symfony symfony>= 5.3.0, < 5.4.47, >= 6.0.0-BETA1, < 6.4.15, >= 7.0.0-BETA1, < 7.1.8CVE List
symphony_php_framework symphony_processup to 5.3.0, before 5.4.47, up to 6.0.0-BETA1, before 6.4.15, up to 7.0.0-BETA1, before 7.1.8CVE List
symfony/security-http (Packagist)from 5.3.0 before 5.4.47, from 6.0.0-BETA1 before 6.4.15, from 7.0.0-BETA1 before 7.1.8GitHub Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Classification

CWE-287CWE-289

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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.

NVD (es)

Symphony process es un módulo para el framework PHP Symphony que ejecuta comandos en subprocesos. Al consumir una cookie de recordatorio persistente, Symfony no comprueba si el nombre de usuario persistente en la base de datos coincide con el nombre de usuario adjunto a la cookie, lo que provoca la omisión de la autenticación. Esta vulnerabilidad se ha corregido en 5.4.47, 6.4.15 y 7.1.8.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-51996 changed 2024-11-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-cg23-qf8f-62rr changed 2024-11-15CC-BY-4.0
NVDCVE-2024-51996 changed 2026-06-17Public domain