CVE-2026-122053 — Symfony: ObjectNormalizer Dotted-Key Property-Path Traversal Bypasses #[Ignore] on Nested Objects
One of 2 composer:symfony/serializer vulnerabilities published together by GitHub Advisory: our article covers all of them.
PHPWebVulnerabilitiesSeverity breakdown
Medium · 6.9
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- no
- Impact
- low on confidentiality and integrity, none on availability
- Impact on other systems
- none
Weakness
- CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| symfony/serializer (Packagist) | < 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 | |
| symfony/symfony (Packagist) | < 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 |
References by type
Vendor advisories
Patches and fixed releases
- github.com/symfony/symfony/commit/9f7390678a255f7962fb1c81c42b26fa907d3…
- github.com/symfony/symfony/commit/fcaf87a93c7fa5b7fe9e9e8382d4ed0d0c52c…
- github.com/symfony/symfony/releases/tag/v5.4.56
- github.com/symfony/symfony/releases/tag/v6.4.50
- github.com/symfony/symfony/releases/tag/v7.4.23
- github.com/symfony/symfony/releases/tag/v8.1.11
Other references
Details
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 PropertyAccessor resolves a path segment against public methods as well as properties, a segment matching a public method name invokes that method with the attacker's value.
The path support itself is deliberate: class metadata may declare an attribute whose name is a property path and expose it under a serialized_name. Only paths that no mapping ever declared are a problem.
Resolution
A property path is accepted only when the class metadata declares an attribute of that exact name. Declared paths keep working unchanged; a path arriving in the payload with no matching declaration is ignored.
On 6.4 and above the check is placed before the static writability cache is consulted. That cache is keyed on class, attribute and extraction context only, so caching a metadata-dependent answer would let one normalizer answer for another and could restore the bypass.
The patches for this issue are available here for branch 5.4 and here for branch 6.4 (and forward-ported to 7.4, 8.1 and 8.2).
Credits
Symfony would like to thank Alexandre Daubois and The PHP Foundation for reporting the issue.
Affected
- composer:symfony/serializer
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-122053?
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. Weakness type: Improperly Controlled Modification of Dynamically-Determined Object Attributes (CWE-915).
How severe is CVE-2026-122053?
CVE-2026-122053 has a CVSS 4.0 base score of 6.9 (medium), from the CNA. An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-122053 being exploited?
Not as far as is known: CVE-2026-122053 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-122053?
symfony/serializer (Packagist) < 5.4.56 (fixed in 5.4.56); symfony/serializer (Packagist) ≥ 6.4.9, < 6.4.50 (fixed in 6.4.50); symfony/serializer (Packagist) ≥ 7.0.9, < 7.1.0 (fixed in 7.1.0); symfony/serializer (Packagist) ≥ 7.1.2, < 7.4.23 (fixed in 7.4.23); and more, listed on this page.
How do I fix CVE-2026-122053?
Update to a fixed release: symfony/serializer (Packagist) 5.4.56; symfony/serializer (Packagist) 6.4.50; symfony/serializer (Packagist) 7.1.0.
Timeline & sources
References
Related vulnerabilities & news
- GHSA-5w3m-mfwg-9f8r / CVE-2026-118513 — Symfony: X509Authenticator and X509AuthenticationListener Read Escaped RFC 2253 Commas and Bare Slashes Inside a DN Value as RDN Boundaries
- GHSA-gq53-v8w2-gjhj / CVE-2026-121971 — Symfony: ScopingHttpClient Sends the Credentials of Its Default Scope to Other Origins Through Network-Path References
- GHSA-h38r-xrmh-cwhr / CVE-2026-118515 — Symfony: The Serializer Builds UploadedFile Objects From Request Data, Letting a Client Point an Upload at Any Server File
- miniBB 3.7.2 login open redirect lets forged POST data send users to external sites; fixed in 3.8
- Joomla! Core PHP Object Injection Vulnerability in 1.5.0-5.4.11 and 6.0.0-6.2.1