Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘 Packagist

CVE-2021-21424

MEDIUM

CVE-2021-21424 is a medium-severity (CVSS 5.3) Information Exposure vulnerability in symfony/security. O3 Security confirms whether CVE-2021-21424 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

Prevent user enumeration using Guard or the new Authenticator-based Security

Also known asBIT-symfony-2021-21424GHSA-5pv8-ppvj-4h68
Published
May 13, 2021
Updated
Aug 4, 2026
Affected
17 pkgs
Patched
17 / 17
Exploits
None indexed

Blast Radius

17 pkgs affected
🐘symfony/security🐘symfony/security-guard🐘symfony/security-guard🐘symfony/security-guard🐘symfony/security-core🐘symfony/security-core🐘symfony/security-core🐘lexik/jwt-authentication-bundle+9 more

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

17 total 17 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistsymfony/security5.0.0&&< 5.2.85.2.8
🐘Packagistsymfony/security-guard2.8.0&&< 3.4.483.4.48
🐘Packagistsymfony/security-guard4.0.0&&< 4.4.234.4.23
🐘Packagistsymfony/security-guard5.0.0&&< 5.2.85.2.8
🐘Packagistsymfony/security-core2.8.0&&< 3.4.483.4.48
🐘Packagistsymfony/security-core4.0.0&&< 4.4.234.4.23

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for symfony/security. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update symfony/security to 5.2.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-21424 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether CVE-2021-21424 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to CVE-2021-21424. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2021-21424 in your dependencies?

O3 detects CVE-2021-21424 across Packagist dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.