/

CVE-2026-48736

Severity:

HIGH RISK

(8.6)

SSRF via IPv6 Transition Prefixes (CWE-918) in Symfony

CVE-2026-48736

Analyzed

Vulnerability type

Category:

Server-Side Request Forgery (SSRF)

CWE:

CWE-184, CWE-918

Impact:

Network Boundary Bypass and Internal Service Access

Severity:

HIGH RISK

(8.6)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Certain Symfony HTTP client utilities misclassified attacker-supplied URLs using IPv6 transition prefixes, allowing indirect access to private IPv4 network targets.

When applications rely on IpUtils::isPrivateIp() or NoPrivateNetworkHttpClient for SSRF protection, specially crafted IPv6-formatted URLs can bypass these checks and reach internal services.

Affected context

This vulnerability arises in Symfony-based applications that use NoPrivateNetworkHttpClient or IpUtils::isPrivateIp() to prevent outbound requests to private networks.

It becomes relevant when user-controlled URLs or hosts are passed to Symfony's HTTP client, proxy logic, or URL validation and are expected to be blocked if they resolve to internal addresses.

Environments where the application can reach internal HTTP endpoints, metadata services, or admin APIs are especially exposed to this misclassification of private IP ranges via IPv6 transition mechanisms.

Exploit preconditions

  • Attack surface: Endpoints, jobs, or background tasks that make outbound HTTP(S) requests using Symfony's HTTP client based on user-supplied URLs or hosts.
  • Required access: Ability for an attacker to influence the requested URL (query parameters, JSON body, form input, webhooks, redirects, or configuration that is not fully trusted).
  • Trigger point: Invocation of NoPrivateNetworkHttpClient or IpUtils::isPrivateIp() for network access control, where the URL is encoded using IPv6 transition prefixes that map to private IPv4 space.
  • Why exploitation is possible: IpUtils::PRIVATE_SUBNETS and related checks omit IPv6 transition prefixes (e.g., 6to4, NAT64, Teredo, IPv4-compatible IPv6), so certain representations of private IPv4 targets are treated as public addresses and allowed by SSRF protection logic.

Why this happens

The root cause is incomplete handling of address representations in IP classification utilities that enforce network access restrictions.

Symfony's IpUtils::PRIVATE_SUBNETS and NoPrivateNetworkHttpClient were designed to block requests to private IP ranges but relied on an address model that focused on direct IPv4/IPv6 private blocks.

IPv6 transition technologies (such as 6to4, NAT64, Teredo, and IPv4-compatible IPv6) provide alternative encodings that can still reach the underlying private IPv4 network while appearing as non-private to the flawed checks.

This maps to CWE-918 (Server-Side Request Forgery), amplified by CWE-184 (Incomplete Blacklist): the blacklist of private network ranges did not consider all relevant encodings, leaving an evasion path for attacker-controlled URLs.

Potential impact

  • An attacker can cause the application to send HTTP requests to internal services that were assumed to be unreachable.
  • Internal APIs, admin panels, or configuration endpoints may be queried or manipulated via forged requests.
  • Cloud metadata services and service discovery endpoints could be accessed, potentially leaking credentials or configuration secrets.
  • SSRF can be chained with other vulnerabilities (e.g., misconfigured internal endpoints) to achieve remote code execution or data exfiltration.
  • Logging, monitoring, or rate-limiting systems might be bypassed or confused by indirect internal traffic.

General mitigation guidance

Effective mitigation focuses on strengthening network access control patterns and reducing trust in user-supplied URLs:

  • Use IP filtering logic that understands IPv4, IPv6, and transition mechanisms, ensuring all encodings of private ranges are treated consistently.
  • Prefer allowlists of known-safe hosts or domains instead of attempting to block internal ranges with blacklists, especially for sensitive outbound requests.
  • Normalize and resolve hostnames and addresses before applying access control checks, so equivalent representations cannot evade filters.
  • Isolate HTTP client functionality that talks to internal services from endpoints that process untrusted input; separate client instances and configuration for internal vs external targets.
  • Limit the application's network reach via infrastructure controls (firewalls, VPC security groups, container network policies), so even logic flaws in the framework do not permit direct access to sensitive internal services.

How teams detect issues like this

Organizations can identify and monitor this class of issue using several approaches:

  • Static analysis rules that flag usage of HTTP client calls where the URL originates from untrusted input and depends solely on IP blacklist checks for protection.
  • Code review practices focusing on SSRF risk, verifying that outbound requests to user-supplied URLs use strict validation, normalization, and prefer host/domain allowlists.
  • Security tests that attempt SSRF through non-obvious IP representations (IPv6 literals, transition prefixes, encoded IPv4 addresses) to ensure defenses handle all canonical forms.
  • Policy enforcement in CI/CD pipelines that requires SSRF-safe helper functions or libraries and discourages ad hoc IP range filtering logic.
  • Runtime monitoring and alerting for unusual outbound traffic patterns from web applications to internal address ranges or metadata services.

Sources

SourceLink
github.comgithub.com/symfony/symfony/commit/82765368cf74177c36613575182f168a2eb765b2
github.comgithub.com/symfony/symfony/commit/85b831555be8ea1f43bf01078afe87bc4c92f65e
github.comgithub.com/symfony/symfony/releases/tag/v5.4.53
github.comgithub.com/symfony/symfony/releases/tag/v6.4.41
github.comgithub.com/symfony/symfony/releases/tag/v7.4.13
github.comgithub.com/symfony/symfony/security/advisories/GHSA-38cx-cq6f-5755

Frequently asked

questions

Exploitability depends on whether the application sends outbound HTTP requests based on attacker-controlled URLs and relies on Symfony's IP utilities for SSRF protection. If the application does not expose such functionality, practical risk is reduced.

The attacker typically needs only the ability to supply or influence the URL or host for an outbound HTTP request, such as through a web form, webhook configuration, or API parameter. No direct server shell access is required.

The most robust fix pattern is to avoid blacklist-only approaches for SSRF defense and instead use explicit allowlists of permitted hosts or domains, combined with proper host resolution and normalization before requesting. Network-layer controls should complement application logic.

Design outbound call features with SSRF resistance from the start: minimize functionality that accepts arbitrary URLs, enforce strict host allowlists, validate and normalize addresses, and restrict the application's network access at the infrastructure level. Regular security testing using varied IP encodings and transition mechanisms helps ensure defenses remain effective.

Find out what's already
exploitable in your codebase.