NoPrivateNetworkHttpClient With Custom Subnets Lets IPv4-Mapped Addresses Through
- CVE-2026-133748
- EUVD-2026-135237
Description
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.
Text from the CVE.org record.
Recommendation
Symfony symfony/http-foundation
- 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.57update to 5.4.57 or later
Symfony 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 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.57update to 5.4.57 or later
Taken from the version ranges of the CVE.org record. 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 symfony/http-foundation
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.57 5.4.57 Symfony symfony/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.57 5.4.57
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.