Symfony allows internal address and port enumeration by NoPrivateNetworkHttpClient
Published 6 Nov 2024 · Updated 3 Feb 2026
Affected packages
- Affected
- >=4.3.0 <5.4.47
- Fixed in
- 5.4.47
composer require symfony/http-client:^5.4.47- Affected
- >=6.0.0 <6.4.15
- Fixed in
- 6.4.15
composer require symfony/http-client:^6.4.15- Affected
- >=7.0.0 <7.1.8
- Fixed in
- 7.1.8
composer require symfony/http-client:^7.1.8- Affected
- >=4.3.0 <5.4.47
- Fixed in
- 5.4.47
composer require symfony/symfony:^5.4.47- Affected
- >=6.0.0 <6.4.15
- Fixed in
- 6.4.15
composer require symfony/symfony:^6.4.15- Affected
- >=7.0.0 <7.1.8
- Fixed in
- 7.1.8
composer require symfony/symfony:^7.1.8Details
Description
When using the NoPrivateNetworkHttpClient, some internal information is still leaking during host resolution, which leads to possible IP/port enumeration.
Resolution
The NoPrivateNetworkHttpClient now filters blocked IPs earlier to prevent such leaks.
The fisrt patch for this issue is available here for branch 5.4.
The second one is available here for branch 5.4 also.
Credits
We would like to thank Linus Karlsson and Chris Smith for reporting the issue and Nicolas Grekas for providing the fix.
Is GHSA-9c3x-r3wp-mgxm 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/http-client, and gives you the command that fixes it.
References
- Linkgithub.com/symfony/symfony/security/advisories/GHSA-9c3x-r3wp-mgxm
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-50342
- Linkgithub.com/symfony/symfony/commit/296d4b34a33b1a6ca5475c6040b3203622520f5b
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-client/CVE-2024-50342.yaml
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50342.yaml
- Packagegithub.com/symfony/symfony
- Linksymfony.com/cve-2024-50342
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.