CVE-2021-21424Sensiolabs Symfony
Medium 5.3 No auth needed
Follow: this CVE · Sensiolabs · Sensiolabs Symfony We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Symfony.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| sensiolabs | symfony | ≥ 2.8.0 < 3.4.48 |
| sensiolabs | symfony | ≥ 4.0.0 < 4.4.23 |
| sensiolabs | symfony | ≥ 5.0.0 < 5.2.8 |
| fedoraproject | fedora | 33 |
| fedoraproject | fedora | 34 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- lists.debian.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org