CVE-2026-133748: NoPrivateNetworkHttpClient With Custom Subnets Lets IPv4-Mapped Addresses Through
NoPrivateNetworkHttpClient accepts a list of subnets to block instead of its default one. When that list contains an IPv6 entry, the client lets IpUtils::checkIp() decide for every address. Before Symfony 6.4.50, 7.4.23 and 8.1.11, checkIp() didn't match an IPv4-mapped address like ::ffff:127.0.0.1 against IPv4 subnets. Such an address connects to the IPv4 host it embeds. So http://[::ffff:127.0.0.1]/, or a host name whose AAAA record contains a mapped address, reaches a blocked IPv4 host:
$client = new NoPrivateNetworkHttpClient(HttpClient::create(), ['10.0.0.0/8', '127.0.0.0/8', '192.168.0.0/16', 'fc00::/7', '::1/128']); $client->request('GET', 'http://127.0.0.1/'); // blocked $client->request('GET', 'http://[::ffff:127.0.0.1]/'); // sent to 127.0.0.1
The default list is not affected, since it contains ::ffff:0:0/96.
IpUtils::checkIp() now checks an IPv4-mapped address against IPv4 subnets as the IPv4 host it embeds. Symfony 6.4.50, 7.4.23 and 8.1.11 already do so since the fix for GHSA-xg2q-4rrq-657q, and 5.4 now does too.
The fix is in symfony/http-foundation, so updating symfony/http-client alone isn't enough. On 5.4, trusted proxies and the ips of request matchers now also match IPv4-mapped addresses through IPv4 ranges, as on 6.4 and up. NoPrivateNetworkHttpClient also blocks IPv4-mapped addresses when its custom subnets have no IPv4 entry, since such lists block every IPv4 host.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
symfony/http-foundationto a version that resolves this vulnerability.Fixed in 6.4.50 - Upgrade
Upgrade
symfony/http-foundationto a version that resolves this vulnerability.Fixed in 7.4.23 - Upgrade
Upgrade
symfony/http-foundationto a version that resolves this vulnerability.Fixed in 8.1.11
Event History
Frequently Asked Questions
Which deployments are affected?
Deployments using NoPrivateNetworkHttpClient with a custom blocked-subnet list are affected when that list includes an IPv6 subnet and relies on IPv4 subnet entries to block targets. The default blocked-subnet list is not affected because it includes ::ffff:0:0/96.
What does an attacker need to bypass the block?
The attacker needs to cause a request to an IPv4-mapped IPv6 address, either directly, such as http://[::ffff:127.0.0.1]/, or through a hostname whose AAAA record contains a mapped address. The mapped address can reach the embedded IPv4 host even when that host falls within a blocked IPv4 subnet.
What should be updated?
Update symfony/http-foundation to a fixed release. Symfony 6.4.50, 7.4.23, and 8.1.11 include the correction, and 5.4 now includes it as well; updating symfony/http-client alone is insufficient.
How can I determine whether my configuration is exposed?
Review NoPrivateNetworkHttpClient instances for custom subnet lists containing IPv6 entries alongside blocked IPv4 ranges. A configuration matching that pattern can be tested with an IPv4-mapped IPv6 literal for an address in one of the blocked IPv4 ranges.