CVE-2026-123119: Symfony: NoPrivateNetworkHttpClient Does Not Pin the Checked IP of Cached Hosts, Letting DNS Rebinding Enumerate Internal Ports (Incomplete Fix for CVE-2024-50342)
The Symfony HttpClient component NoPrivateNetworkHttpClient does not pin the checked IP address of cached hosts, allowing for DNS rebinding to bypass private network restrictions, resulting in enumeration of internal hosts and ports in Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11.
NoPrivateNetworkHttpClient resolves the host of each request and checks the IP before connecting. It caches the result per host, and passes the IP to the decorated client through the resolve option so that the client connects to the exact IP that was checked. The issue is that resolve was only passed on the first lookup of a host: on subsequent requests, the decorated client resolved the host again on its own.
An attacker who controls a host's DNS can exploit this with DNS rebinding by answering the first lookup with a public IP, and subsequent lookups with a private IP, so when an application sends several requests to that host through the same client, the later requests connect to the private IP. This happens, for example, when an application fetches several URLs of a repository provided by a user. The check of the primaryip in the onprogress callback still aborts the request before anything is sent, but the connection is made, and the error differs depending on whether the port is open or closed. This allows enumerating internal hosts and ports, as in CVE-2024-50342.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Symfony HttpClient componentto a version that resolves this vulnerability.Fixed in 5.4.56 - Upgrade
Upgrade
Symfony HttpClient componentto a version that resolves this vulnerability.Fixed in 6.4.50 - Upgrade
Upgrade
Symfony HttpClient componentto a version that resolves this vulnerability.Fixed in 7.4.23 - Upgrade
Upgrade
Symfony HttpClient componentto a version that resolves this vulnerability.Fixed in 8.1.11
Event History
Frequently Asked Questions
Which deployments are affected?
Applications using Symfony HttpClient's NoPrivateNetworkHttpClient are affected if they run versions earlier than 5.4.56, 6.4.50 within the 6.x line, 7.4.23 within the 7.x line, or 8.1.11 within the 8.x line.
What conditions are required for exploitation?
An attacker must control the DNS responses for a host and cause the application to make several requests to that host through the same client. The first DNS lookup must return a public IP address, while later lookups return a private IP address.
What is the practical impact of a successful attack?
Later requests can connect to a private IP address despite the private-network check, enabling enumeration of internal hosts and ports. One cited scenario is an application fetching several repository URLs supplied by a user.
What should be done to remediate the issue?
Upgrade to Symfony 5.4.56, 6.4.50, 7.4.23, or 8.1.11, as applicable to the deployed release line.