CVE-2026-123125

Symfony: Ip Constraint public/private Modes Accept IPv4-Mapped and IPv4-Compatible IPv6 Addresses allowing SSRF Filter Bypass

Published Nov 5, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
The Symfony Validator component IpValidator incompletely classifies internal addresses in the filtered modes of the Ip constraint, so some internal addresses are accepted as public, which can lead to Server-Side Request Forgery (SSRF) in Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11.

In these modes, IpValidator relies on the PHP flags FILTER_FLAG_NO_PRIV_RANGE and FILTER_FLAG_NO_RES_RANGE to classify addresses as public, private, or reserved. These flags do not cover shared address space (100.64.0.0/10) or IPv4-mapped, IPv4-compatible, and 6to4 IPv6 addresses, which can embed internal IPv4 addresses. A value such as ::ffff:127.0.0.1 can therefore pass validation even though it points to an internal host.
Applications that rely on the Ip constraint to reject internal addresses, for example before making a server-side request to a user-supplied address, can be exposed to SSRF.

Analysis

AI-generated

Technical impact

The validator component internally uses PHP filter flags to classify IP addresses as public or private. These flags omit certain address ranges, notably shared 100.64/10 space and IPv4‑mapped or compatible IPv6 forms, which can encapsulate private IPv4 addresses. As a result, addresses such as ::ffff:127.0.0.1 are incorrectly accepted as public by the Ip constraint, allowing an attacker to supply a seemingly public address that actually resolves to an internal host and cause the application to make a server‑side request. This flaw is a classic server‑side request forgery scenario, potentially exposing internal resources.

Affected Systems

The issue is present in the Symfony framework, specifically the Validator component. Affected releases include Symfony 5.x before 5.4.56, 6.x before 6.4.50, 7.x before 7.4.23, and 8.x before 8.1.11. The product is identified as Symfony by the vendor SensioLabs and is represented in the CPE namespace cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*.*.

Risk and Exploitability

The vulnerability carries a CVSS score of 6.3, indicating moderate severity. EPSS scoring is not provided, and the flaw is not listed in CISA’s KEV catalog. Attackers can exploit it by supplying malicious input that is validated as a public IP yet resolves to an internal system, provided that the application uses the Ip constraint without additional safeguards. The direct impact is unauthorized access to internal services via SSRF, which can lead to data exfiltration, privilege escalation, or further network compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Symfony to a version that includes the fix (5.4.56 or later, 6.4.50 or later, 7.4.23 or later, 8.1.11 or later).
  • If an upgrade is not possible, replace or augment the Ip constraint validation with custom logic that rejects IPv4‑mapped, IPv4‑compatible, and 100.64/10 addresses or uses stricter PHP filter flags.
  • Ensure any user‑supplied URL or IP that will trigger a server‑side request is validated against a whitelist that excludes internal or special‑case addresses, and audit the application for remaining uses of the default Ip constraint.

Generated by OpenCVE AI on November 5, 2026 at 17:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

Type Values Removed Values Added
Description The Symfony Validator component IpValidator incompletely classifies internal addresses in the filtered modes of the Ip constraint, so some internal addresses are accepted as public, which can lead to Server-Side Request Forgery (SSRF) in Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11. In these modes, IpValidator relies on the PHP flags FILTER_FLAG_NO_PRIV_RANGE and FILTER_FLAG_NO_RES_RANGE to classify addresses as public, private, or reserved. These flags do not cover shared address space (100.64.0.0/10) or IPv4-mapped, IPv4-compatible, and 6to4 IPv6 addresses, which can embed internal IPv4 addresses. A value such as ::ffff:127.0.0.1 can therefore pass validation even though it points to an internal host. Applications that rely on the Ip constraint to reject internal addresses, for example before making a server-side request to a user-supplied address, can be exposed to SSRF.
Title Symfony: Ip Constraint public/private Modes Accept IPv4-Mapped and IPv4-Compatible IPv6 Addresses allowing SSRF Filter Bypass
First Time appeared Sensiolabs
Sensiolabs symfony
Weaknesses CWE-184
CWE-918
CPEs cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
Vendors & Products Sensiolabs
Sensiolabs symfony
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
Checkmarx
Published
Updated
Nov 5, 2026, 5:00 PM
Reserved
Nov 5, 2026, 1:05 PM
Status
Awaiting Analysis
Published
Nov 5, 2026, 4:17 PM
Modified
Nov 6, 2026, 9:40 PM
Severity
Moderate
Public date
Nov 5, 2026, 3:55 PM