HighGHSA-whgv-8cg3-7hcmCVE-2016-4423

Symphony Denial of Service Via Overlong Usernames

Published 17 May 2022 · Updated 8 Dec 2024

Affected packages

Affected
>=2.3.0 <2.3.41
Fixed in
2.3.41
Update to the fixed version for your release line, for example:composer require symfony/security-http:^2.3.41
Affected
>=2.4.0 <2.7.13
Fixed in
2.7.13
Update to the fixed version for your release line, for example:composer require symfony/security-http:^2.7.13
Affected
>=2.8.0 <2.8.6
Fixed in
2.8.6
Update to the fixed version for your release line, for example:composer require symfony/security-http:^2.8.6
Affected
>=3.0.0 <3.0.6
Fixed in
3.0.6
Update to the fixed version for your release line, for example:composer require symfony/security-http:^3.0.6
Affected
>=2.3.0 <2.3.41
Fixed in
2.3.41
Update to the fixed version for your release line, for example:composer require symfony/security:^2.3.41
Affected
>=2.4.0 <2.7.13
Fixed in
2.7.13
Update to the fixed version for your release line, for example:composer require symfony/security:^2.7.13
Affected
>=2.8.0 <2.8.6
Fixed in
2.8.6
Update to the fixed version for your release line, for example:composer require symfony/security:^2.8.6
Affected
>=3.0.0 <3.0.6
Fixed in
3.0.6
Update to the fixed version for your release line, for example:composer require symfony/security:^3.0.6
Affected
>=2.3.0 <2.3.41
Fixed in
2.3.41
Update to the fixed version for your release line, for example:composer require symfony/symfony:^2.3.41
Affected
>=2.4.0 <2.7.13
Fixed in
2.7.13
Update to the fixed version for your release line, for example:composer require symfony/symfony:^2.7.13
Affected
>=2.8.0 <2.8.6
Fixed in
2.8.6
Update to the fixed version for your release line, for example:composer require symfony/symfony:^2.8.6
Affected
>=3.0.0 <3.0.6
Fixed in
3.0.6
Update to the fixed version for your release line, for example:composer require symfony/symfony:^3.0.6

Details

The attemptAuthentication function in Component/Security/Http/Firewall/UsernamePasswordFormAuthenticationListener.php in Symfony before 2.3.41, 2.7.x before 2.7.13, 2.8.x before 2.8.6, and 3.0.x before 3.0.6 does not limit the length of a username stored in a session, which allows remote attackers to cause a denial of service (session storage consumption) via a series of authentication attempts with long, non-existent usernames.

Is GHSA-whgv-8cg3-7hcm in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected symfony/security-http, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.