Skip to main content
← All vulnerabilities
CVE-2021-21424GHSA-5PV8-PPVJ-4H68BIT-SYMFONY-2021-21424

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.4.48, 4.4.23, 5.2.8, 2.10.7, 2.11.3, and 5 more
2 proofs of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • symfony symfony

    From 2.8.0 · fixed in 3.4.48; From 4.0.0 · fixed in 4.4.23; From 5.0.0 · fixed in 5.2.8

  • symfony/securityPackagist

    From 5.0.0 · fixed in 5.2.8

  • symfony/security-guardPackagist

    From 2.8.0 · fixed in 3.4.48

  • symfony/security-guardPackagist

    From 4.0.0 · fixed in 4.4.23

  • symfony/security-guardPackagist

    From 5.0.0 · fixed in 5.2.8

  • symfony/security-corePackagist

    From 2.8.0 · fixed in 3.4.48

  • symfony/security-corePackagist

    From 4.0.0 · fixed in 4.4.23

  • symfony/security-corePackagist

    From 5.0.0 · fixed in 5.2.8

  • lexik/jwt-authentication-bundlePackagist

    From 2.0.0 · fixed in 2.10.7

  • lexik/jwt-authentication-bundlePackagist

    From 2.11.0 · fixed in 2.11.3

  • symfony/maker-bundlePackagist

    From 1.27.0 · fixed in 1.29.2

  • symfony/maker-bundlePackagist

    From 1.30.0 · fixed in 1.31.1

  • symfony/security-httpPackagist

    From 5.1.0 · fixed in 5.2.8

  • symfony/securityPackagist

    From 2.8.0 · fixed in 3.4.49

  • symfony/securityPackagist

    From 4.0.0 · fixed in 4.4.24

  • symfony/symfonyPackagist

    From 2.8.0 · fixed in 3.4.49

  • symfony/symfonyPackagist

    From 4.0.0 · fixed in 4.4.24

  • symfony/symfonyPackagist

    From 5.0.0 · fixed in 5.2.9

References 9

GitHub · symfony/symfony

lists.fedoraproject.org

lists.debian.org

GitHub · moften/CVE-2021-21424

GitHub · moften/Symfony-CVE-Scanner-PoC-