Symfony: NoPrivateNetworkHttpClient Does Not Pin the Checked IP of Cached Hosts, Letting DNS Rebinding Enumerate Internal Ports: Incomplete Fix for CVE-2024-50342
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| sensiolabssymfony |
< 5.4.56→ 5.4.56 ≥ 6.0.0, < 6.4.50→ 6.4.50 ≥ 7.0.0, < 7.4.23→ 7.4.23 ≥ 8.0.0, < 8.1.11→ 8.1.11 |
5.4.56 6.4.50 7.4.23 8.1.11 |
| composersymfony/http-client |
< 8.1.11→ 8.1.11 |
8.1.11 |
| composersymfony/symfony |
< 8.1.11→ 8.1.11 |
8.1.11 |
| Packagistsymfony/http-client |
≥ 8.0.0, < 8.1.11→ 8.1.11 |
8.1.11 |
| Packagistsymfony/symfony |
≥ 8.0.0, < 8.1.11→ 8.1.11 |
8.1.11 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-123119 symfony Fix available
- Ubuntu UBUNTU-CVE-2026-123119 symfony No fixed version in this record
Original description The description as published by the source.
Description
NoPrivateNetworkHttpClient resolves the host of each request and checks the IP before connecting. To make the decorated client connect to that same IP, it passes the IP with the resolve option. It also caches the IP of each host. But it passed the IP with resolve only when it resolved a host for the first time. On the next requests to the same host, the decorated client resolved the host again by itself.
An attacker who controls the DNS of a host can use DNS rebinding. The first lookup then returns a public IP and the next ones a private IP. 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, like CVE-2024-50342.
Resolution
NoPrivateNetworkHttpClient now passes the IP with the resolve option for cached hosts too, so that every request connects to the IP that was checked.
The patch for this issue is available here for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).
Credits
Symfony would like to thank [Eirik Stanghe…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- package github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web packagist.org
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com