Symfony: NoPrivateNetworkHttpClient Does Not Pin the Checked IP of Cached Hosts, Letting DNS Rebinding Enumerate Internal Ports (Incomplete Fix for CVE-2024-50342)
- CVE-2026-123119
- GHSA-c7hm-wqwp-f9v8
- EUVD-2026-117435
Description
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 primary_ip in the on_progress 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.
Text from the CVE.org record.
Recommendation
symfony
- If you run a version from 8.0.0 to before 8.1.11update to 8.1.11 or laterMinor version change: check the release notes
- If you run a version from 7.0.0 to before 7.4.23update to 7.4.23 or laterMinor version change: check the release notes
- If you run a version from 6.0.0 to before 6.4.50update to 6.4.50 or laterMinor version change: check the release notes
- If you run a version before 5.4.56update to 5.4.56 or later
symfony/http-client
- If you run a version from 8.0.0 to before 8.1.11update to 8.1.11 or laterMinor version change: check the release notessymfony/http-client 8.1.11 on its registry (opens in a new tab)
- If you run a version from 7.0.0 to before 7.4.23update to 7.4.23 or laterMinor version change: check the release notessymfony/http-client 7.4.23 on its registry (opens in a new tab)
- If you run a version from 6.0.0 to before 6.4.50update to 6.4.50 or laterMinor version change: check the release notessymfony/http-client 6.4.50 on its registry (opens in a new tab)
- If you run a version before 5.4.56update to 5.4.56 or latersymfony/http-client 5.4.56 on its registry (opens in a new tab)
symfony/symfony
- If you run a version from 8.0.0 to before 8.1.11update to 8.1.11 or laterMinor version change: check the release notessymfony/symfony 8.1.11 on its registry (opens in a new tab)
- If you run a version from 7.0.0 to before 7.4.23update to 7.4.23 or laterMinor version change: check the release notessymfony/symfony 7.4.23 on its registry (opens in a new tab)
- If you run a version from 6.0.0 to before 6.4.50update to 6.4.50 or laterMinor version change: check the release notessymfony/symfony 6.4.50 on its registry (opens in a new tab)
- If you run a version before 5.4.56update to 5.4.56 or latersymfony/symfony 5.4.56 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
symfony
Affected versions Fixed in from 8.0.0 to before 8.1.11 8.1.11 from 7.0.0 to before 7.4.23 7.4.23 from 6.0.0 to before 6.4.50 6.4.50 before 5.4.56 5.4.56 symfony/http-clientPackagist
Affected versions Fixed in from 8.0.0 to before 8.1.11 8.1.11 from 7.0.0 to before 7.4.23 7.4.23 from 6.0.0 to before 6.4.50 6.4.50 before 5.4.56 5.4.56 symfony/symfonyPackagist
Affected versions Fixed in from 8.0.0 to before 8.1.11 8.1.11 from 7.0.0 to before 7.4.23 7.4.23 from 6.0.0 to before 6.4.50 6.4.50 before 5.4.56 5.4.56
Product versions from the ENISA EUVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.