CVE-2021-21424: Prevent user enumeration using Guard or the new Authenticator-based Security
CVE-2021-21424: Prevent user enumeration via response content in authentication mechanisms
Other sources
Description -----------
The ability to enumerate users was possible without relevant permissions due to different exception messages depending on whether the user existed or not. It was also possible to enumerate users by using a timing attack, by comparing time elapsed when authenticating an existing user and authenticating a non-existing user.
Resolution ----------
We now ensure that 403s are returned whether the user exists or not if the password is invalid or if the user does not exist.
The patch for this issue is available here for branch 3.4.
Credits -------
I would like to thank James Isaac and Mathias Brodala for reporting the issue and Robin Chalas for fixing the issue.
— GitHub
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The ability to enumerate users was possible without relevant permissions due to different handling depending on whether the user existed or not when attempting to use the switch users functionality. We now ensure that 403s are returned whether the user exists or not if a user cannot switch to a user or if the user does not exist. The patch for this issue is available for branch 3.4.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2021-21424?
CVE-2021-21424 is a vulnerability in Symfony, a PHP framework for web and console applications, that allows user enumeration via response content in authentication mechanisms.
What is the severity of CVE-2021-21424?
The severity of CVE-2021-21424 is medium, with a severity value of 5.3.
Which versions of Symfony are affected by CVE-2021-21424?
The versions of Symfony affected by CVE-2021-21424 are between 2.8.0 and 3.4.48, between 4.0.0 and 4.4.23, and between 5.0.0 and 5.2.8.
How can I fix CVE-2021-21424?
To fix CVE-2021-21424, upgrade Symfony to a version that is not affected, such as 3.4.49, 4.4.24, or 5.2.9.
Where can I find more information about CVE-2021-21424?
You can find more information about CVE-2021-21424 on the Symfony website and the GitHub pages for the Symfony project and security advisories.