CVE-2024-50342: Internal address and port enumeration allowed by NoPrivateNetworkHttpClient in symfony/http-client

Published Nov 6, 2024
·
Updated

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.

Other sources

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.

NVD

Affected Software

10 affected componentsFixes available
composer/symfony/symfony>=7.0.0<7.1.8
7.1.8
composer/symfony/symfony>=6.0.0<6.4.15
6.4.15
composer/symfony/symfony>=4.3.0<5.4.47
5.4.47
composer/symfony/http-client>=7.0.0<7.1.8
7.1.8
composer/symfony/http-client>=6.0.0<6.4.15
6.4.15
composer/symfony/http-client>=4.3.0<5.4.47
5.4.47
debian/symfony<=4.4.19+dfsg-2+deb11u6
5.4.23+dfsg-1+deb12u46.4.18+dfsg-1
SensioLabs Httpclient<5.4.46
SensioLabs Httpclient>=6.0.0<6.4.14
SensioLabs Httpclient>=7.0.0<7.1.7

Event History

Nov 6, 2024
Advisory Published
via GitHub·03:16 PM
CVE Published
via MITRE·09:03 PM
Data Sourced
via MITRE·09:03 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyAffected Software
Feb 18, 2025
Data Sourced
via Ubuntu·08:23 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-50342?

CVE-2024-50342 has been classified as a moderate severity vulnerability due to the potential for IP/port enumeration.

2

How do I fix CVE-2024-50342?

To fix CVE-2024-50342, update your Symfony package to version 7.1.8, 6.4.15, or 5.4.47.

3

What software versions are affected by CVE-2024-50342?

CVE-2024-50342 affects Symfony versions from 5.4.0 to 5.4.46, 6.0.0 to 6.4.14, and 7.0.0 to 7.1.7.

4

What is the cause of CVE-2024-50342?

CVE-2024-50342 arises from improper handling of internal information by the NoPrivateNetworkHttpClient during host resolution.

5

Is there a workaround for CVE-2024-50342?

There is no official workaround for CVE-2024-50342; the recommended action is to upgrade to a patched version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203