CVE-2024-50342
Low · 3.1Symfony allows internal address and port enumeration by NoPrivateNetworkHttpClient
CVSS
3.1
EPSS
0.5%
Published
Nov 6, 2024
CISA due date
—
Cloudanix analysis
A network protection feature in some Symfony applications was unintentionally revealing details about internal systems when trying to connect to them.
- Exploitation
- Other
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Library
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The NoPrivateNetworkHttpClient leaks internal details such as resolved host IPs or ports during DNS/host resolution, allowing enumeration despite the private network restriction.
Why it matters to the business
Attackers may obtain limited visibility into internal network layout, which could support reconnaissance for further attacks, though overall risk remains low due to minimal exploitability.
How an attack unfolds
An attacker sends crafted requests through an application component that uses NoPrivateNetworkHttpClient, triggering resolution attempts against private targets and observing the leaked resolution data to map IPs and ports.
How to fix it
Upgrade symfony/symfony to the commit 296d4b34a33b1a6ca5475c6040b3203622520f5b or later that resolves the leak in NoPrivateNetworkHttpClient.
How to confirm the fix worked
Confirm the patched commit is present in the Symfony codebase and test that host resolution no longer exposes internal IP or port details when using NoPrivateNetworkHttpClient.
Typical attack path
- Locate an application endpoint that invokes NoPrivateNetworkHttpClient
- Issue requests designed to force resolution of internal or private hostnames
- Inspect responses, errors, or logs for leaked IP and port information
- Use enumerated details to refine subsequent reconnaissance or attacks
How to detect it
Examine application and web server logs for host resolution attempts or error messages involving private network addresses; look for patterns of requests that could trigger the client against internal targets.
What your security team should do
- Apply the fixed commit 296d4b34a33b1a6ca5475c6040b3203622520f5b immediately in all Symfony environments
- Audit all usages of NoPrivateNetworkHttpClient for proper private-network enforcement
- Review application logs for any prior host-resolution activity involving private addresses
The record
When using the `NoPrivateNetworkHttpClient`, some internal information is still leaking during host resolution, which leads to possible IP/port enumeration.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | symfony/http-client | 4.3.0 | 5.4.47 |
| Packagist | symfony/http-client | 6.0.0 | 6.4.15 |
| Packagist | symfony/http-client | 7.0.0 | 7.1.8 |
| Packagist | symfony/symfony | 4.3.0 | 5.4.47 |
| Packagist | symfony/symfony | 6.0.0 | 6.4.15 |
| Packagist | symfony/symfony | 7.0.0 | 7.1.8 |
| Debian:11 | symfony | 0 | No fix |
| Debian:12 | symfony | 0 | No fix |
| Debian:12 | symfony | 0 | 5.4.23+dfsg-1+deb12u3 |
| Debian:13 | symfony | 0 | No fix |
| Debian:13 | symfony | 0 | 6.4.14+dfsg-1 |
| Ubuntu:20.04:LTS | symfony | 0 | No fix |
| Ubuntu:22.04:LTS | symfony | 0 | No fix |
| Ubuntu:24.04:LTS | symfony | 0 | No fix |
| Ubuntu:24.10 | symfony | 0 | No fix |
| Ubuntu:25.04 | symfony | 0 | No fix |
| Ubuntu:25.10 | symfony | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | symfony | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | symfony | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | symfony | 0 | 5.4.4+dfsg-1ubuntu8+esm1 |
| Ubuntu:Pro:24.04:LTS | symfony | 0 | 6.4.5+dfsg-3ubuntu3+esm1 |
| packagist | symfony/http-client | 4.3.0 | 5.4.46 |
| packagist | symfony/http-client | 4.3.0 | 5.4.47 |
| packagist | symfony/http-client | 6.0.0 | 6.4.14 |
| packagist | symfony/http-client | 6.0.0 | 6.4.15 |
| packagist | symfony/http-client | 7.0.0 | 7.1.7 |
| packagist | symfony/http-client | 7.0.0 | 7.1.8 |
| packagist | symfony/symfony | 4.3.0 | 5.4.46 |
| packagist | symfony/symfony | 4.3.0 | 5.4.47 |
| packagist | symfony/symfony | 6.0.0 | 6.4.14 |
| packagist | symfony/symfony | 6.0.0 | 6.4.15 |
| packagist | symfony/symfony | 7.0.0 | 7.1.7 |
| packagist | symfony/symfony | 7.0.0 | 7.1.8 |
Related vulnerabilities
- CVE-2026-24739 Symfony is a PHP framework for web and console applications and a set of reusable PHP… Also affects symfony/symfony
- CVE-2025-64500 Symfony's incorrect parsing of PATH_INFO can lead to limited authorization bypass Also affects symfony/symfony
- CVE-2024-50343 symfony/validator is a module for the Symphony PHP framework which provides tools to… Also affects symfony/symfony
- CVE-2024-50340 symfony/runtime is a module for the Symphony PHP framework which enables decoupling PHP… Also affects symfony/symfony
- CVE-2024-50341 symfony/security-bundle is a module for the Symphony PHP framework which provides a tight… Also affects symfony/symfony
- CVE-2024-36611 In Symfony v7.07, a security vulnerability was identified in the FormLoginAuthenticator… Also affects symfony
- CVE-2024-51996 Symphony process is a module for the Symphony PHP framework which executes commands in… Also affects symfony
- CVE-2024-50345 Symfony vulnerable to open redirect via browser-sanitized URLs Also affects symfony