Live threats

All CVEs / Sensiolabs

CVE-2021-21424Sensiolabs Symfony

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.6%
probability of exploitation in 30 days · percentile 77
Auth required
No
Published
May 13, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200, CWE-203
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Symfony.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist lexik/jwt-authentication-bundle ≥ 2.0.0 < 2.10.7 2.10.7 composer require "lexik/jwt-authentication-bundle:^2.10.7"
Packagist lexik/jwt-authentication-bundle ≥ 2.11.0 < 2.11.3 2.11.3 composer require "lexik/jwt-authentication-bundle:^2.11.3"
Packagist symfony/maker-bundle ≥ 1.27.0 < 1.29.2 1.29.2 composer require "symfony/maker-bundle:^1.29.2"
Packagist symfony/maker-bundle ≥ 1.30.0 < 1.31.1 1.31.1 composer require "symfony/maker-bundle:^1.31.1"
Packagist symfony/security ≥ 5.0.0 < 5.2.8 5.2.8 composer require "symfony/security:^5.2.8"
Packagist symfony/security ≥ 2.8.0 < 3.4.49 3.4.49 composer require "symfony/security:^3.4.49"
Packagist symfony/security ≥ 4.0.0 < 4.4.24 4.4.24 composer require "symfony/security:^4.4.24"
Packagist symfony/security-core ≥ 2.8.0 < 3.4.48 3.4.48 composer require "symfony/security-core:^3.4.48"
Packagist symfony/security-core ≥ 4.0.0 < 4.4.23 4.4.23 composer require "symfony/security-core:^4.4.23"
Packagist symfony/security-core ≥ 5.0.0 < 5.2.8 5.2.8 composer require "symfony/security-core:^5.2.8"
Packagist symfony/security-guard ≥ 2.8.0 < 3.4.48 3.4.48 composer require "symfony/security-guard:^3.4.48"
Packagist symfony/security-guard ≥ 4.0.0 < 4.4.23 4.4.23 composer require "symfony/security-guard:^4.4.23"
Packagist symfony/security-guard ≥ 5.0.0 < 5.2.8 5.2.8 composer require "symfony/security-guard:^5.2.8"
Packagist symfony/security-http ≥ 5.1.0 < 5.2.8 5.2.8 composer require "symfony/security-http:^5.2.8"
Packagist symfony/symfony ≥ 2.8.0 < 3.4.49 3.4.49 composer require "symfony/symfony:^3.4.49"
Packagist symfony/symfony ≥ 4.0.0 < 4.4.24 4.4.24 composer require "symfony/symfony:^4.4.24"
Packagist symfony/symfony ≥ 5.0.0 < 5.2.9 5.2.9 composer require "symfony/symfony:^5.2.9"

Per OSV / GitHub Advisories (GHSA-5pv8-ppvj-4h68). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sensiolabssymfony≥ 2.8.0 < 3.4.48
sensiolabssymfony≥ 4.0.0 < 4.4.23
sensiolabssymfony≥ 5.0.0 < 5.2.8
fedoraprojectfedora33
fedoraprojectfedora34

Official sources

References

Links published by the sources. Open them with care.