CVE-2024-50342 Internal address and port enumeration allowed by NoPrivateNetworkHttpClient in symfony/http-client
Attackers can enumerate internal IP addresses and ports via host resolution leaks in the Symfony HTTP client library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-50342?
CVE-2024-50342 is a low-severity vulnerability in symfony, published on 6 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
symfony/http-client is a module for the Symphony PHP framework which provides powerful methods to fetch HTTP resources synchronously or asynchronously. When using the `NoPrivateNetworkHttpClient`, some internal information is still leaking during host resolution, which leads to possible IP/port enumeration. As of versions 5.4.46, 6.4.14, and 7.1.7 the `NoPrivateNetworkHttpClient` now filters blocked IPs earlier to prevent such leaks. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Weakness: CWE-200
Which versions are affected by CVE-2024-50342?
12 open source packages ship an affected version, including symfony/http-client and symfony/symfony. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
symfony/http-client Packagist | From 4.3.0 | 5.4.47 |
symfony/http-client Packagist | From 4.3.0 | 5.4.47 |
symfony/http-client Packagist | From 6.0.0 | 6.4.15 |
symfony/http-client Packagist | From 6.0.0 | 6.4.15 |
symfony/http-client Packagist | From 7.0.0 | 7.1.8 |
symfony/http-client Packagist | From 7.0.0 | 7.1.8 |
6 more packages
symfony/symfony Packagist | From 4.3.0 | 5.4.47 |
symfony/symfony Packagist | From 4.3.0 | 5.4.47 |
symfony/symfony Packagist | From 6.0.0 | 6.4.15 |
symfony/symfony Packagist | From 6.0.0 | 6.4.15 |
symfony/symfony Packagist | From 7.0.0 | 7.1.8 |
symfony/symfony Packagist | From 7.0.0 | 7.1.8 |
Products include Sensiolabs Httpclient.
How do I fix CVE-2024-50342?
Upgrade symfony/http-client to a fixed version for your release line: 5.4.47, 6.4.15 or 7.1.8.
Is CVE-2024-50342 being exploited?
There is no known exploitation of CVE-2024-50342 in the wild and no public exploit code.
Sources
Also known as CLSA-2026-1793214753, DEBIAN-CVE-2024-50342, GHSA-9c3x-r3wp-mgxm, UBUNTU-CVE-2024-50342.