# CVE-2021-21424: Prevent user enumeration using Guard or the new Authenticator-based Security

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.64%, higher than 77% of CVEs (2026-12-01)
- Published: 2021-05-13T00:00:00.000Z
- Modified: 2026-09-10T03:49:04.871Z
- Also known as: GHSA-5pv8-ppvj-4h68, BIT-SYMFONY-2021-21424
- Weaknesses: CWE-200, CWE-203
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- symfony symfony: >= 2.8.0, < 3.4.48; >= 4.0.0, < 4.4.23; >= 5.0.0, < 5.2.8
- symfony/security (Packagist): from 5.0.0 before 5.2.8; from 2.8.0 before 3.4.49; from 4.0.0 before 4.4.24
- symfony/security-guard (Packagist): from 2.8.0 before 3.4.48; from 4.0.0 before 4.4.23; from 5.0.0 before 5.2.8
- symfony/security-core (Packagist): from 2.8.0 before 3.4.48; from 4.0.0 before 4.4.23; from 5.0.0 before 5.2.8
- lexik/jwt-authentication-bundle (Packagist): from 2.0.0 before 2.10.7; from 2.11.0 before 2.11.3
- symfony/maker-bundle (Packagist): from 1.27.0 before 1.29.2; from 1.30.0 before 1.31.1
- symfony/security-http (Packagist): from 5.1.0 before 5.2.8
- symfony/symfony (Packagist): from 2.8.0 before 3.4.49; from 4.0.0 before 4.4.24; from 5.0.0 before 5.2.9
- sensiolabs symfony: from 2.8.0 before 3.4.48; from 4.0.0 before 4.4.23; from 5.0.0 before 5.2.8
- fedoraproject fedora: 33; 34
- symfony (Bitnami): from 2.8.0 before 3.4.48; from 4.0.0 before 4.4.23; from 5.0.0 before 5.2.8

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/symfony/symfony/security/advisories/GHSA-5pv8-ppvj-4h68> (patch, third-party-advisory, web)
- <https://github.com/symfony/symfony/commit/2a581d22cc621b33d5464ed65c4bc2057f72f011> (patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KENRNLB3FYXYGDWRBH2PDBOZZKOD7VY4/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VRUS2H2SSOQWNLBD35SKIWIDQEMV2PD3/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UC7BND775DVZDQT3RMGD2HVB2PKLJDJW/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RH7TMM5CHQYBFFGXWRPJDPB3SKCZXI2M/> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21424> (advisory)
- <https://symfony.com/cve-2021-21424> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VRUS2H2SSOQWNLBD35SKIWIDQEMV2PD3> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UC7BND775DVZDQT3RMGD2HVB2PKLJDJW> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RH7TMM5CHQYBFFGXWRPJDPB3SKCZXI2M> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KENRNLB3FYXYGDWRBH2PDBOZZKOD7VY4> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VRUS2H2SSOQWNLBD35SKIWIDQEMV2PD3> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UC7BND775DVZDQT3RMGD2HVB2PKLJDJW> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RH7TMM5CHQYBFFGXWRPJDPB3SKCZXI2M> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KENRNLB3FYXYGDWRBH2PDBOZZKOD7VY4> (web)
- <https://github.com/symfony/symfony> (package)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2021-21424.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2021-21424.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2021-21424.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-guard/CVE-2021-21424.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/maker-bundle/CVE-2021-21424.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/lexik/jwt-authentication-bundle/CVE-2021-21424.yaml> (web)

## Sources

- CVE List: [CVE-2021-21424](https://www.cve.org/CVERecord?id=CVE-2021-21424), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5pv8-ppvj-4h68](https://github.com/advisories/GHSA-5pv8-ppvj-4h68), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21424](https://nvd.nist.gov/vuln/detail/CVE-2021-21424), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-SYMFONY-2021-21424](https://osv.dev/vulnerability/BIT-SYMFONY-2021-21424), Apache-2.0, modified 2024-03-06

---

Page: https://cve.day/CVE-2021-21424 · Whole record: https://cve.day/CVE-2021-21424.json · Rebuilt by cve.day 2026-11-25T22:58:01.329Z
