Skip to content
PHP News
Search

Symfony MakerBundle security advisory

CVE-2021-21424: Prevent user enumeration via response content in authentication mechanisms

medium Symfony MakerBundle Symfony components · Not reviewed by PHP News yet
CVE
CVE-2021-21424
GHSA
GHSA-5pv8-ppvj-4h68
Packagist
PKSA-nvyj-nkn9-3qq7
Reported
May 12, 2021

Affected and fixed versions

In 6 packages: symfony/maker-bundle, symfony/security, symfony/security-core, symfony/security-guard, symfony/security-http and symfony/symfony. Find the row for the version you run, and update to the release next to it.

If you run Update to Support
1.30.0 – 1.30.x 1.31.1 Supported
1.31.0 1.31.1 Supported
Show 31 older branches, no longer supported
5.0.0 – 5.0.x 5.2.9
5.1.0 – 5.1.x 5.2.9
5.2.0 – 5.2.8 5.2.9
5.0.0 – 5.0.x 5.2.8
5.1.0 – 5.1.x 5.2.8
5.2.0 – 5.2.7 5.2.8
4.0.0 – 4.0.x 4.4.24
4.1.0 – 4.1.x 4.4.24
4.2.0 – 4.2.x 4.4.24
4.3.0 – 4.3.x 4.4.24
4.4.0 – 4.4.23 4.4.24
4.0.0 – 4.0.x 4.4.23
4.1.0 – 4.1.x 4.4.23
4.2.0 – 4.2.x 4.4.23
4.3.0 – 4.3.x 4.4.23
4.4.0 – 4.4.22 4.4.23
2.8.0 – 2.x 3.4.49
3.0.0 – 3.0.x 3.4.49
3.1.0 – 3.1.x 3.4.49
3.2.0 – 3.2.x 3.4.49
3.3.0 – 3.3.x 3.4.49
3.4.0 – 3.4.48 3.4.49
2.8.0 – 2.x 3.4.48
3.0.0 – 3.0.x 3.4.48
3.1.0 – 3.1.x 3.4.48
3.2.0 – 3.2.x 3.4.48
3.3.0 – 3.3.x 3.4.48
3.4.0 – 3.4.47 3.4.48
1.27.0 – 1.27.x 1.29.2
1.28.0 – 1.28.x 1.29.2
1.29.0 – 1.29.1 1.29.2

Upgrade

Run the line for the branch you are on. 5 other packages listed above are affected too; update them the same way.

composer require symfony/maker-bundle:^1.31.1

Check your app with an agent

Paste this into a coding agent that can read your project, such as Claude Code, Codex or Amp. It checks your composer.lock against the versions above and tells you what to update, without changing anything.

Check whether the PHP project you have access to is affected by this security advisory, and tell me what to update. Do a read-only check: don't edit files, don't run composer update or composer require, and don't try to reproduce the flaw.

Advisory: CVE-2021-21424: Prevent user enumeration via response content in authentication mechanisms (CVE-2021-21424, GHSA-5pv8-ppvj-4h68)
Details: https://phpnews.net/security/symfony/ghsa-5pv8-ppvj-4h68

Affected versions, as Composer constraints:
- symfony/maker-bundle: >=1.27.0,<1.28.0|>=1.28.0,<1.29.0|>=1.29.0,<1.29.2|>=1.30.0,<1.31.0|>=1.31.0,<1.31.1
- symfony/security: >=2.8.0,<3.0.0|>=3.0.0,<3.1.0|>=3.1.0,<3.2.0|>=3.2.0,<3.3.0|>=3.3.0,<3.4.0|>=3.4.0,<3.4.49|>=4.0.0,<4.1.0|>=4.1.0,<4.2.0|>=4.2.0,<4.3.0|>=4.3.0,<4.4.0|>=4.4.0,<4.4.24
- symfony/security-core, symfony/symfony: >=2.8.0,<3.0.0|>=3.0.0,<3.1.0|>=3.1.0,<3.2.0|>=3.2.0,<3.3.0|>=3.3.0,<3.4.0|>=3.4.0,<3.4.49|>=4.0.0,<4.1.0|>=4.1.0,<4.2.0|>=4.2.0,<4.3.0|>=4.3.0,<4.4.0|>=4.4.0,<4.4.24|>=5.0.0,<5.1.0|>=5.1.0,<5.2.0|>=5.2.0,<5.2.9
- symfony/security-guard: >=2.8.0,<3.0.0|>=3.0.0,<3.1.0|>=3.1.0,<3.2.0|>=3.2.0,<3.3.0|>=3.3.0,<3.4.0|>=3.4.0,<3.4.48|>=4.0.0,<4.1.0|>=4.1.0,<4.2.0|>=4.2.0,<4.3.0|>=4.3.0,<4.4.0|>=4.4.0,<4.4.23|>=5.0.0,<5.1.0|>=5.1.0,<5.2.0|>=5.2.0,<5.2.8
- symfony/security-http: >=5.1.0,<5.2.0|>=5.2.0,<5.2.8

Fixed releases on branches that still get security fixes:
- 1.30.0 – 1.30.x: update to 1.31.1
- 1.31.0: update to 1.31.1

1. Find every composer.lock in the project outside vendor/ (a monorepo can have one per app) and read the installed version of each package above. Packages installed as dependencies of other packages count too.
2. Compare each installed version with its constraint: "|" separates alternative ranges, and "," means both bounds apply.
3. For each affected install, read the project's advisory at https://symfony.com/cve-2021-21424 and check whether the project meets the conditions it describes (if that page won't load, use https://github.com/advisories/GHSA-5pv8-ppvj-4h68). Say which conditions you could check and which you couldn't.
4. Report a table: lock file | package | installed version | affected (yes, no or unknown) | conditions met (yes, no or unknown) | update to | evidence. For each affected package, give the command that would fix it, without running it: composer update <package> --with-dependencies when it is only installed as a dependency of another package, or composer require with the fixed version when composer.json requires it directly. If the installed version is on a branch with no fixed release listed, say it needs a move to a newer branch.

Sources

← All MakerBundle advisories