CVE-2026-122053 · Package
NO FIX YET · SEE WHAT TO DO
Symfony's Serializer ObjectNormalizer accepts attribute names containing dots or brackets and treats them as property paths. An attacker can send a payload key such as customer.admin to write into nested objects, bypass their #[Ignore] attributes, or invoke public methods.
first public Nov 4, 2026 · 1 source
Check it with your coding agent
It checks your repository and tells you if you’re affected, with the fix.
Applications that bind untrusted request data to objects through the Symfony Serializer are exposed, including controllers using #[MapRequestPayload] or #[MapQueryString], since ObjectNormalizer is their default normalizer. The flaw is reached through dotted or bracketed attribute names in the payload, and partial updates with OBJECT_TO_POPULATE can persist the modified field. Applications that do not deserialize untrusted input into objects can skip it.
Not affected if custom-normalizer, no-untrusted-object-binding
Who cares php, symfony, symfony-controller, symfony-serializer
symfony/serializer version in composer.lock or with composer show symfony/serializer.ObjectNormalizer, including #[MapRequestPayload] and #[MapQueryString], and for OBJECT_TO_POPULATE used on partial updates.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.
Are you affected?
Tell InfraStack what you run. It checks this one, and every next one, against your stack.
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
symfony/serializer to 5.4.56 or later on the 5.4 line.6.4.50 or later on the 6.4 line.7.1.0 or later on the 7.0 line, or 7.4.23 or later on the 7.1 and 7.4 lines.8.1.11 or later on the 8.x line.This page as .md · .json · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.