Symfony: Ip Constraint public/private Modes Accept IPv4-Mapped and IPv4-Compatible IPv6 Addresses allowing SSRF Filter Bypass
- CVE-2026-123125
- GHSA-4qpf-57w4-m3wc
- EUVD-2026-117557
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.
Text from the CVE.org record.
Recommendation
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.56update to 5.4.56 or later
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 notessymfony/symfony 8.1.11 on its registry (opens in a new tab)
- 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 notessymfony/symfony 7.4.23 on its registry (opens in a new tab)
- 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 notessymfony/symfony 6.4.50 on its registry (opens in a new tab)
- If you run a version before 5.4.56update to 5.4.56 or latersymfony/symfony 5.4.56 on its registry (opens in a new tab)
symfony/validator
- 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 notessymfony/validator 8.1.11 on its registry (opens in a new tab)
- 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 notessymfony/validator 7.4.23 on its registry (opens in a new tab)
- 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 notessymfony/validator 6.4.50 on its registry (opens in a new tab)
- If you run a version before 5.4.56update to 5.4.56 or latersymfony/validator 5.4.56 on its registry (opens in a new tab)
Taken from the version ranges the sources state. 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
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.56 5.4.56 symfony/symfonyPackagist
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.56 5.4.56 symfony/validatorPackagist
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.56 5.4.56
Product versions from the ENISA EUVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.