{"id":"CVE-2021-21424","published":"2021-05-13T00:00:00Z","modified":"2024-08-03T18:09:16Z","title":"Prevent user enumeration using Guard or the new Authenticator-based Security","vendor":"symfony","product":"symfony","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01644,"percentile":0.77036,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-5pv8-ppvj-4h68","tags":[]},{"url":"https://github.com/symfony/symfony/commit/2a581d22cc621b33d5464ed65c4bc2057f72f011","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KENRNLB3FYXYGDWRBH2PDBOZZKOD7VY4/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VRUS2H2SSOQWNLBD35SKIWIDQEMV2PD3/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UC7BND775DVZDQT3RMGD2HVB2PKLJDJW/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RH7TMM5CHQYBFFGXWRPJDPB3SKCZXI2M/","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html","tags":["mailing-list"]}],"priority":{"score":24.1,"factors":[{"name":"EPSS percentile","points":15.41},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2025-04-14","earliestUrl":"https://github.com/moften/CVE-2021-21424","repos":[{"name":"moften/CVE-2021-21424","url":"https://github.com/moften/CVE-2021-21424","stars":0,"created":"2025-04-14"},{"name":"moften/Symfony-CVE-Scanner-PoC-","url":"https://github.com/moften/Symfony-CVE-Scanner-PoC-","stars":0,"created":"2025-05-07"}]},"first":{"date":"2025-04-14","source":"PoC-in-GitHub","url":"https://github.com/moften/CVE-2021-21424"},"provenance":"source"},"vendorSlug":"symfony","affectedVersions":[{"vendor":"symfony","product":"symfony","versions":[">= 2.8.0, < 3.4.48",">= 4.0.0, < 4.4.23",">= 5.0.0, < 5.2.8"]}],"affected":[{"ecosystem":"Packagist","package":"symfony/security","vulnerableRanges":[">=5.0.0, <5.2.8",">=2.8.0, <3.4.49",">=4.0.0, <4.4.24"],"patched":["5.2.8","3.4.49","4.4.24"],"from":["GHSA-5pv8-ppvj-4h68"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/security-guard","vulnerableRanges":[">=2.8.0, <3.4.48",">=4.0.0, <4.4.23",">=5.0.0, <5.2.8"],"patched":["3.4.48","4.4.23","5.2.8"],"from":["GHSA-5pv8-ppvj-4h68"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/security-core","vulnerableRanges":[">=2.8.0, <3.4.48",">=4.0.0, <4.4.23",">=5.0.0, <5.2.8"],"patched":["3.4.48","4.4.23","5.2.8"],"from":["GHSA-5pv8-ppvj-4h68"],"provenance":"source"},{"ecosystem":"Packagist","package":"lexik/jwt-authentication-bundle","vulnerableRanges":[">=2.0.0, <2.10.7",">=2.11.0, <2.11.3"],"patched":["2.10.7","2.11.3"],"from":["GHSA-5pv8-ppvj-4h68"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/maker-bundle","vulnerableRanges":[">=1.27.0, <1.29.2",">=1.30.0, <1.31.1"],"patched":["1.29.2","1.31.1"],"from":["GHSA-5pv8-ppvj-4h68"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/security-http","vulnerableRanges":[">=5.1.0, <5.2.8"],"patched":["5.2.8"],"from":["GHSA-5pv8-ppvj-4h68"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=2.8.0, <3.4.49",">=4.0.0, <4.4.24",">=5.0.0, <5.2.9"],"patched":["3.4.49","4.4.24","5.2.9"],"from":["GHSA-5pv8-ppvj-4h68"],"provenance":"source"}],"summary":{"text":"The flaw is in Symfony, the PHP framework's security component, where the switch user functionality responded differently depending on whether a targeted account existed. An attacker can exploit this over the network without authentication or user interaction to determine which user accounts exist.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:25Z"},"euvd":{"id":"EUVD-2021-0960","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-19790","published":"2018-12-18","fixed":"4.2.1","kev":false},{"cve":"CVE-2019-10911","published":"2019-05-16","fixed":"4.2.7","kev":false,"link":{"from":"CVE-2019-10911","to":"CVE-2021-21424","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/security","fromFixed":"3.4.26","toFixed":"3.4.49","daysApart":728}]}},{"cve":"CVE-2020-5275","published":"2020-03-30","fixed":"5.0.7","kev":false,"link":{"from":"CVE-2020-5275","to":"CVE-2021-21424","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/security","fromFixed":"4.4.7","toFixed":"4.4.24","daysApart":409},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/security","fromFixed":"5.0.7","toFixed":"5.2.8","daysApart":409}]}},{"cve":"CVE-2021-21424","published":"2021-05-13","fixed":"5.2.8","kev":false}],"package":"Packagist:symfony/security"}}