Skip to content
Medium 6.9

Symfony: ObjectNormalizer Dotted-Key Property-Path Traversal Bypasses #[Ignore] on Nested Objects

CVE-2026-122053 First seen on SecPulse

Affected packages

PackageAffected → Fixed
sensiolabssymfony
≥ 5.4.41, < 5.4.56→ 5.4.56
≥ 6.4.9, < 6.4.50→ 6.4.50
≥ 7.0.9, < 7.1.0→ 7.1.0
≥ 7.1.2, < 7.4.23→ 7.4.23
≥ 8.0.0, < 8.1.11→ 8.1.11
composersymfony/serializer
< 8.1.11→ 8.1.11
composersymfony/symfony
< 8.1.11→ 8.1.11
Packagistsymfony/serializer
≥ 8.0.0, < 8.1.11→ 8.1.11
Packagistsymfony/symfony
≥ 8.0.0, < 8.1.11→ 8.1.11

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

Description

ObjectNormalizer::isAllowedAttribute() treats any attribute name containing . (and, from 6.4, [) as writable, 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 therefore writes to $order->customer->admin, bypassing the #[Ignore] metadata of the nested class. That metadata 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.

No allowlist stands in the way. When the root class carries no #[Ignore] and no #[Groups], AbstractNormalizer::getAllowedAttributes() returns false and every key in the payload is let through:

{"customer": {"name": "Mallory"}, "qty": 1, "customer.admin": true}

The first key denormalizes customer normally, honouring #[Ignore] on admin. The third key takes the path fast lane and sets admin anyway.

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.

Because `PropertyAcc…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details