CVE-2024-50342: Symfony HTTP Client Internal Address and Port Enumeration Vulnerability

symfony/http-client Updated 02 Oct 2025

Summary

06/11/2024
Yes i
Low
3.1

CVE-2024-50342: Symfony allows internal address and port enumeration by NoPrivateNetworkHttpClient. Affects symfony/http-client across 3 version ranges.

>= 4.3.0, < 5.4.47 >= 6.0.0, < 6.4.15 >= 7.0.0, < 7.1.8

Fixed in 5.4.47, 6.4.15 or 7.1.8, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2024-50342 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Symfony is a popular PHP framework that provides a set of reusable components and a web application framework for building robust applications. The Symfony HTTP Client component is designed to facilitate HTTP requests and responses, enabling developers to interact with web services efficiently. However, a vulnerability has been identified in the NoPrivateNetworkHttpClient, which can lead to the unintended exposure of internal addresses and ports.

Vulnerability Detail

The vulnerability arises from the NoPrivateNetworkHttpClient's failure to adequately filter blocked IPs during host resolution. This oversight allows for potential internal address and port enumeration, which could be exploited by malicious actors to gain insights into the internal network structure. The issue is classified under CWE-200, indicating information exposure, and has a CVSS score of 3.1, reflecting its low severity but potential impact on network security.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.3.0, < 5.4.47 5.4.47
    composer require symfony/http-client:5.4.47
  • >= 6.0.0, < 6.4.15 6.4.15
    composer require symfony/http-client:6.4.15
  • >= 7.0.0, < 7.1.8 7.1.8
    composer require symfony/http-client:7.1.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, consider using alternative HTTP clients or implementing additional network security measures to restrict access to internal addresses until the package can be updated.

Conclusion

The CVE-2024-50342 vulnerability in Symfony's HTTP Client poses a risk of internal address and port enumeration. It is crucial for developers using affected versions to update their packages promptly to the patched versions to ensure the security of their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for symfony/http-client →

Share this vulnerability

FAQ

The vulnerability allows for internal address and port enumeration through the NoPrivateNetworkHttpClient in Symfony, potentially exposing sensitive network information.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If exploited, this vulnerability could allow attackers to gather information about your internal network, which could lead to further attacks or unauthorized access.

Yes, patches are available for various versions of Symfony. Ensure you update to the specified patched versions to mitigate the risk.

If immediate updates are not possible, consider implementing network security measures to limit access to internal resources as a temporary safeguard.

Related vulnerabilities

Recent vulnerabilities recorded for symfony/http-client.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.3.0, < 5.4.47 5.4.47
    composer require symfony/http-client:5.4.47
  • >= 6.0.0, < 6.4.15 6.4.15
    composer require symfony/http-client:6.4.15
  • >= 7.0.0, < 7.1.8 7.1.8
    composer require symfony/http-client:7.1.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback