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
composer require symfony/security-http:^2.3.41- Affected
- >=2.4.0 <2.7.13
- Fixed in
- 2.7.13
composer require symfony/security-http:^2.7.13- Affected
- >=2.8.0 <2.8.6
- Fixed in
- 2.8.6
composer require symfony/security-http:^2.8.6- Affected
- >=3.0.0 <3.0.6
- Fixed in
- 3.0.6
composer require symfony/security-http:^3.0.6- Affected
- >=2.3.0 <2.3.41
- Fixed in
- 2.3.41
composer require symfony/security:^2.3.41- Affected
- >=2.4.0 <2.7.13
- Fixed in
- 2.7.13
composer require symfony/security:^2.7.13- Affected
- >=2.8.0 <2.8.6
- Fixed in
- 2.8.6
composer require symfony/security:^2.8.6- Affected
- >=3.0.0 <3.0.6
- Fixed in
- 3.0.6
composer require symfony/security:^3.0.6- Affected
- >=2.3.0 <2.3.41
- Fixed in
- 2.3.41
composer require symfony/symfony:^2.3.41- Affected
- >=2.4.0 <2.7.13
- Fixed in
- 2.7.13
composer require symfony/symfony:^2.7.13- Affected
- >=2.8.0 <2.8.6
- Fixed in
- 2.8.6
composer require symfony/symfony:^2.8.6- Affected
- >=3.0.0 <3.0.6
- Fixed in
- 3.0.6
composer require symfony/symfony:^3.0.6Details
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
- Advisorynvd.nist.gov/vuln/detail/CVE-2016-4423
- Linkgithub.com/symfony/symfony/pull/18733
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2016-4423.yaml
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2016-4423.yaml
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2016-4423.yaml
- Packagegithub.com/symfony/symfony
- Linksymfony.com/blog/cve-2016-4423-large-username-storage-in-session
- Linksymfony.com/cve-2016-4423
- Linkwww.debian.org/security/2016/dsa-3588
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.