Symfony: ObjectNormalizer Dotted-Key Property-Path Traversal Bypasses #[Ignore] on Nested Objects
- CVE-2026-122053
- GHSA-hqp2-7rr8-hf26
- EUVD-2026-118360
Description
Show the whole descriptionHide the whole description
The Symfony Serializer component ObjectNormalizer treats any attribute name containing . (and, from Symfony 6.4, [) as a writable property path, allowing untrusted input to modify properties of nested objects and bypass their #[Ignore] metadata attribute in Symfony versions 5.4.41 prior to 5.4.56, 6.4.9 prior to 6.4.50, 7.0.9 prior to 7.1.0, 7.1.2 prior to 7.4.23, and 8.x prior to 8.1.11. ObjectNormalizer::isAllowedAttribute() accepts such names, and setAttributeValue() hands the name straight to PropertyAccessor::setValue(), which parses it as a property path and traverses into the nested object. A payload key such as customer.admin writes to $order->customer->admin. The #[Ignore] metadata attribute is only consulted when the nested object is denormalized in its own right, never when it is reached through a path. #[Groups] restrictions are not bypassed: the path is only accepted when no groups are passed in the context, and then groups restrict nothing. When the root class carries neither #[Ignore] nor #[Groups], no allowlist applies and every key of the payload is let through. Because PropertyAccessor also resolves a path segment against public methods, a segment matching a public method name invokes that method with the attacker’s value.Applications that bind untrusted input to objects are affected, including controllers using #[MapRequestPayload] or #[MapQueryString], whose default normalizer is ObjectNormalizer. With OBJECT_TO_POPULATE, as used for partial updates, the traversal reaches an already hydrated entity graph, and the modified field may be persisted. The fix accepts a property path only when the class metadata declares an attribute of that exact name. Declared paths keep working unchanged, and a path in the payload with no matching declaration is ignored.
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.1.2 to before 7.4.23update to 7.4.23 or laterMinor version change: check the release notes
- If you run a version from 7.0.9 to before 7.1.0update to 7.1.0 or laterMinor version change: check the release notes
- If you run 6.4.xupdate to 6.4.50 or laterPatch update: breaking changes are unlikely
- If you run 5.4.xupdate to 5.4.56 or laterPatch update: breaking changes are unlikely
symfony/serializer
- 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/serializer 8.1.11 on its registry (opens in a new tab)
- If you run a version from 7.1.2 to before 7.4.23update to 7.4.23 or laterMinor version change: check the release notessymfony/serializer 7.4.23 on its registry (opens in a new tab)
- If you run a version from 7.0.9 to before 7.1.0update to 7.1.0 or laterMinor version change: check the release notessymfony/serializer 7.1.0 on its registry (opens in a new tab)
- If you run 6.4.xupdate to 6.4.50 or laterPatch update: breaking changes are unlikelysymfony/serializer 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/serializer 5.4.56 on its registry (opens in a new tab)
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.1.2 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 7.0.9 to before 7.1.0update to 7.1.0 or laterMinor version change: check the release notessymfony/symfony 7.1.0 on its registry (opens in a new tab)
- If you run 6.4.xupdate to 6.4.50 or laterPatch update: breaking changes are unlikelysymfony/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)
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.1.2 to before 7.4.23 7.4.23 from 7.0.9 to before 7.1.0 7.1.0 from 6.4.9 to before 6.4.50 6.4.50 from 5.4.41 to before 5.4.56 5.4.56 symfony/serializerPackagist
Affected versions Fixed in from 8.0.0 to before 8.1.11 8.1.11 from 7.1.2 to before 7.4.23 7.4.23 from 7.0.9 to before 7.1.0 7.1.0 from 6.4.9 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.1.2 to before 7.4.23 7.4.23 from 7.0.9 to before 7.1.0 7.1.0 from 6.4.9 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.