CVE-2026-123125: Symfony Ip Constraint Public/private Modes Accept Vulnerability
MODERATECVE-2026-123125 is a MODERATE (CVSS 6.5) ip constraint public/private modes accept vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Symfony libraries in the Packagist ecosystem. The issue involves ip constraint public/private modes accept ipv4-mapped and ipv4-compatible ipv6 addresses: ssrf filter bypass. Remediation is available by upgrading affected packages to version 5.4.56, 6.4.50, 7.4.23, 8.1.11.
CVE-2026-123125 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2026-123125
To remediate this vulnerability, upgrade all affected Symfony dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade symfony/symfony to 5.4.56
Upgrade symfony/symfony to 6.4.50
Upgrade symfony/symfony to 7.4.23
Upgrade symfony/symfony to 8.1.11
Upgrade symfony/validator to 5.4.56
Upgrade symfony/validator to 6.4.50
Upgrade symfony/validator to 7.4.23
Upgrade symfony/validator to 8.1.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/symfony
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-123125, inspect your project dependencies for Symfony:
inspect dependencies for symfony/symfony
Analyze the terminal output to locate any version of Symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.56), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Symfony, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-123125 Affected Symfony Versions
8 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/symfony
|
Packagist |
< 5.4.56
|
5.4.56
|
|
symfony/symfony
|
Packagist |
≥ 6.0.0
< 6.4.50
|
6.4.50
|
|
symfony/symfony
|
Packagist |
≥ 7.0.0
< 7.4.23
|
7.4.23
|
|
symfony/symfony
|
Packagist |
≥ 8.0.0
< 8.1.11
|
8.1.11
|
|
symfony/validator
|
Packagist |
< 5.4.56
|
5.4.56
|
|
symfony/validator
|
Packagist |
≥ 6.0.0
< 6.4.50
|
6.4.50
|
|
symfony/validator
|
Packagist |
≥ 7.0.0
< 7.4.23
|
7.4.23
|
|
symfony/validator
|
Packagist |
≥ 8.0.0
< 8.1.11
|
8.1.11
|
References
Frequently Asked Questions
What is CVE-2026-123125?
Which Symfony versions are affected?
What version fixes CVE-2026-123125?
Is symfony/symfony affected?
Is symfony/validator affected?
What is the CVSS score of CVE-2026-123125?
What CWE is associated with CVE-2026-123125?
How can I check Packagist dependencies for CVE-2026-123125?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4qpf-57w4-m3wc",
"modified" : "2026-12-01T21:26:51Z",
"published" : "2026-12-01T21:26:51Z",
"aliases" : [ "CVE-2026-123125" ],
"summary" : "Symfony: Ip Constraint public/private Modes Accept IPv4-Mapped and IPv4-Compatible IPv6 Addresses: SSRF Filter Bypass",
"details" : "### Description\n\n`Symfony\\Component\\Validator\\Constraints\\IpValidator` decides the public, private and reserved classification for the `Ip` constraint's filtered modes solely from PHP's `FILTER_FLAG_NO_PRIV_RANGE` and `FILTER_FLAG_NO_RES_RANGE` flags, with no second check.\n\nThose flags are an incomplete basis for this purpose, in two ways.\n\n**Whole ranges are covered by neither flag.** `100.64.0.0/10` (RFC 6598 shared address space, which is genuinely routed internal space), the TEST-NET ranges `192.0.2.0/24`, `198.51.100.0/24`, `203.0.113.0/24`, and `198.18.0.0/15` (RFC 2544 benchmarking) are accepted by every mode, as is the entire IPv6 special-purpose family: 6to4 (`2002::/16`), Teredo (`2001::/32`), NAT64 (`64:ff9b::/96`, `64:ff9b:1::/48`), documentation (`2001:db8::/32`) and benchmarking (`2001:0002::/48`).\n\n**Classification is also spelling dependent for IPv6.** `::7f00:1` is accepted by every mode, while `::127.0.0.1`, the same 128 bits, is rejected by `NO_RES` from PHP 8.3 onward. PHP 8.3 added a reserved-range rule for `::ffff:0:0/96`, so `::ffff:127.0.0.1` is accepted on PHP 8.1 and 8.2 but rejected from 8.3, while the `::7f00:1` spelling and the `NO_PRIV` mode remain bypassed on every version up to 8.5.\n\nA developer using `#[Assert\\Ip(version: Ip::ALL_ONLY_PUBLIC)]` or `Ip::ALL_NO_PRIV` as an anti-internal-address guard is therefore bypassed. The strongest cases are IPv4-mapped addresses in `ALL_NO_PRIV` mode, and carrier-grade NAT space in the public-only modes. A mapped address connects to the RFC 1918 or loopback host it embeds. On PHP 8.3 and later, `ALL_ONLY_PUBLIC` rejects IPv4-mapped addresses. The IPv4-compatible spelling `::7f00:1` is misclassified on every version, but it does not connect to loopback on Linux:\n\n```php\n$validator->validate('::ffff:10.0.0.1', new Ip(version: Ip::ALL_NO_PRIV)); // 0 violations\n$validator->validate('2002:7f00:1::', new Ip(version: Ip::ALL_ONLY_PUBLIC)); // 0 violations\n$validator->validate('100.64.0.1', new Ip(version: Ip::V4_ONLY_PUBLIC)); // 0 violations\n```\n\nThis is an opt-in control: the default `version = V4` performs no range filtering at all, so the affected population is precisely those relying on the public, private and reserved modes as a security filter.\n\n### Resolution\n\nFor the `NO_PRIV`, `NO_RES` and `ONLY_PUBLIC` modes (`NO_PRIVATE` and `NO_RESERVED` from Symfony 7.0 on), `IpValidator` now additionally rejects any address falling in the non-public subnets, mirroring `Symfony\\Component\\HttpFoundation\\IpUtils::PRIVATE_SUBNETS` for both address families. The check is applied on top of the existing `filter_var()` call so it can only tighten validation, and it is skipped entirely for the unfiltered `V4`, `V6` and `ALL` modes, which are unchanged.\n\nNote three deliberate consequences:\n\n* All three filtered modes reject the whole family, so `ONLY_PUBLIC` now agrees with `IpUtils::isPrivateIp()` on every address, and `NO_PRIV` and `NO_RES` behave the same as `ONLY_PUBLIC`. These modes are treated as security filters rather than as a taxonomy of address categories. Applications that relied on `NO_PRIV` accepting reserved addresses, or on `NO_RES` accepting private ones, will see previously valid values rejected.\n* Addresses previously accepted are now rejected, including `100.64.0.1` and `192.0.2.1` in every filtered mode, `127.0.0.1` under `NO_PRIV`, `10.0.0.1` under `NO_RES`, and `::ffff:8.8.8.8`, an IPv4-mapped form of a public address, under `NO_PRIV`.\n* On a PHP built with `--disable-ipv6`, `inet_pton()` cannot parse IPv6 addresses, so the three filtered modes reject every IPv6 address rather than falling back to the previous behaviour. IPv4 addresses and the unfiltered `V4`, `V6` and `ALL` modes are unaffected.\n\n`IpUtils` itself could not be reused: `symfony/validator` does not depend on `symfony/http-foundation` and must not gain that dependency, so the subnet list is duplicated in the Validator and has to be kept in sync by hand.\n\nThe patches for this issue are available [here](https://github.com/symfony/symfony/commit/3bf8ea37fcb402c5ecc502a3f63012df85a7572e) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).\n\n### Credits\n\nSymfony would like to thank zx (Jace) for reporting the issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.4.56"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.4.50"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.4.23"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.1.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/validator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.4.56"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/validator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.4.50"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/validator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.4.23"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/validator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.1.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/security/advisories/GHSA-4qpf-57w4-m3wc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-123125"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/commit/3bf8ea37fcb402c5ecc502a3f63012df85a7572e"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-123125.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/validator/CVE-2026-123125.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/symfony/symfony"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-184", "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-01T21:26:51Z",
"nvd_published_at" : "2026-11-05T16:17:46Z"
}
}