Symfony HTTP client bypasses custom subnet blocks via IPv4-mapped IPv6
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Symfony's symfony/http-foundation and symfony/symfony packages before 5.4.57, from 6.0.0 before 6.4.50, from 7.0.0 before 7.4.23 and from 8.0.0 before 8.1.11 are affected. IpUtils::checkIp() does not match IPv4-mapped IPv6 addresses such as ::ffff:127.0.0.1 against IPv4 subnets, so NoPrivateNetworkHttpClient with custom subnets that include an IPv6 entry reaches blocked IPv4 hosts (CWE-918). A remote attacker who controls the URL of an outgoing request can reach those IPv4 hosts without privileges.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| symfony | symfony/http-foundation | before 5.4.57; 6.0.0 to before 6.4.50; 7.0.0 to before 7.4.23; 8.0.0 to before 8.1.11 | 5.4.57, 6.4.50, 7.4.23, 8.1.11 | Patch available | CNA |
| symfony | symfony/symfony | before 5.4.57; 6.0.0 to before 6.4.50; 7.0.0 to before 7.4.23; 8.0.0 to before 8.1.11 | 5.4.57, 6.4.50, 7.4.23, 8.1.11 | Patch available | CNA |
- symfony/http-foundation Vendorsymfony Affected before 5.4.57; 6.0.0 to before 6.4.50; 7.0.0 to before 7.4.23; 8.0.0 to before 8.1.11 Fixed in 5.4.57, 6.4.50, 7.4.23, 8.1.11 Patch available CNA
- symfony/symfony Vendorsymfony Affected before 5.4.57; 6.0.0 to before 6.4.50; 7.0.0 to before 7.4.23; 8.0.0 to before 8.1.11 Fixed in 5.4.57, 6.4.50, 7.4.23, 8.1.11 Patch available CNA
Remediation
Upgrade symfony/http-foundation and symfony/symfony to 5.4.57, 6.4.50, 7.4.23 or 8.1.11. Updating symfony/http-client alone is not enough, because the fix is in symfony/http-foundation.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
- Fix · CNA symfony/http-foundation (Symfony) Fixed in 5.4.57, 6.4.50, 7.4.23, 8.1.11
- Fix · CNA symfony/symfony (Symfony) Fixed in 5.4.57, 6.4.50, 7.4.23, 8.1.11
Timeline
- 2026-11-25 Threatist record created from CVE-2026-133748
References
More symfony vulnerabilities
- TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
- TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
- TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
- TI-2022-08704 Symfony storing cookie headers in HttpCache CVSS 3.1HIGH 8.8
- TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHP CVSS 4.0HIGH 8.7
- TI-2026-98148 Nested short ternaries make the Symfony expression parser hang CVSS 4.0HIGH 8.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences