LowGHSA-c7hm-wqwp-f9v8CVE-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

Published 1 Dec 2026 · Updated 1 Dec 2026

Affected packages

Affected
<5.4.56
Fixed in
5.4.56
Update to the fixed version for your release line, for example:composer require symfony/http-client:^5.4.56
Affected
>=6.0.0 <6.4.50
Fixed in
6.4.50
Update to the fixed version for your release line, for example:composer require symfony/http-client:^6.4.50
Affected
>=7.0.0 <7.4.23
Fixed in
7.4.23
Update to the fixed version for your release line, for example:composer require symfony/http-client:^7.4.23
Affected
>=8.0.0 <8.1.11
Fixed in
8.1.11
Update to the fixed version for your release line, for example:composer require symfony/http-client:^8.1.11
Affected
<5.4.56
Fixed in
5.4.56
Update to the fixed version for your release line, for example:composer require symfony/symfony:^5.4.56
Affected
>=6.0.0 <6.4.50
Fixed in
6.4.50
Update to the fixed version for your release line, for example:composer require symfony/symfony:^6.4.50
Affected
>=7.0.0 <7.4.23
Fixed in
7.4.23
Update to the fixed version for your release line, for example:composer require symfony/symfony:^7.4.23
Affected
>=8.0.0 <8.1.11
Fixed in
8.1.11
Update to the fixed version for your release line, for example:composer require symfony/symfony:^8.1.11

We confirm your address first. See our privacy policy.

Which symfony/http-client does your project really install?

Drop your composer.lock hereWe find the exact symfony/http-client version you install, even when another package pulls it in, and tell you if it’s affected and what to run. Free, no sign-up.

Works for private projects: the file is read in memory to run the scan and then dropped. Also reads composer.json.

Public repo?

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Details

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 Stanghelle Morland from Packagist for reporting the issue and Nicolas Grekas for providing the fix.

Is GHSA-c7hm-wqwp-f9v8 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected symfony/http-client, and gives you the command that fixes it.

More advisories for symfony/http-client

  • HighCVE-2026-121971Symfony: ScopingHttpClient Sends the Credentials of Its Default Scope to Other Origins Through Network-Path References · 1 Dec 2026
  • MediumCVE-2026-48736Symfony: IpUtils::PRIVATE_SUBNETS Omits IPv6 Transition Forms (6to4, NAT64, Teredo, IPv4-compatible): SSRF Bypass in NoPrivateNetworkHttpClient · 15 Jun 2026
  • LowCVE-2024-50342Symfony allows internal address and port enumeration by NoPrivateNetworkHttpClient · 6 Nov 2024
symfony/http-client security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.