{"id":"CVE-2026-122053","aliases":["CVE-2026-122053","GHSA-hqp2-7rr8-hf26"],"related":[],"kind":"vulnerability","state":"published","title":"Symfony: ObjectNormalizer Dotted-Key Property-Path Traversal Bypasses #[Ignore] on Nested Objects","summary":"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.\nObjectNormalizer::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.\n\nThe 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\nObjectNormalizer::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.\n\nThe 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.","source":"cvelist"},{"lang":"en","text":"### Description\n\n`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.\n\nA 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.\n\nNo 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:\n\n```json\n{\"customer\": {\"name\": \"Mallory\"}, \"qty\": 1, \"customer.admin\": true}\n```\n\nThe first key denormalizes `customer` normally, honouring `#[Ignore]` on `admin`. The third key takes the path fast lane and sets `admin` anyway.\n\nApplications 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.\n\nBecause `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.\n\nThe 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.\n\n### Resolution\n\nA 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.\n\nOn 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.\n\nThe patches for this issue are available [here](https://github.com/symfony/symfony/commit/fcaf87a93c7fa5b7fe9e9e8382d4ed0d0c52c67c) for branch 5.4 and [here](https://github.com/symfony/symfony/commit/9f7390678a255f7962fb1c81c42b26fa907d3437) for branch 6.4 (and forward-ported to 7.4, 8.1 and 8.2).\n\n### Credits\n\nSymfony would like to thank Alexandre Daubois and The PHP Foundation for reporting the issue.","format":"markdown","source":"ghsa"}],"published":"2026-11-06T16:46:46.986Z","modified":"2026-12-01T21:30:04.501Z","severity":{"scorer":"Checkmarx","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"Checkmarx","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-915"],"affected":[{"ranges":[{"type":"git","introduced":"5.4.41","fixed":"5.4.56","status":"affected"},{"type":"git","introduced":"6.4.9","fixed":"6.4.50","status":"affected"},{"type":"git","introduced":"7.0.9","fixed":"7.1.0","status":"affected"},{"type":"git","introduced":"7.1.2","fixed":"7.4.23","status":"affected"},{"type":"git","introduced":"8.0.0","fixed":"8.1.11","status":"affected"}],"vendor":"sensiolabs","product":"symfony","package":"symfony/serializer","repo":"https://github.com/symfony/serializer","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.4.56"}],"ecosystem":"Packagist","package":"symfony/serializer","purl":"pkg:composer/symfony/serializer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.4.9","status":"affected","fixed":"6.4.50"}],"ecosystem":"Packagist","package":"symfony/serializer","purl":"pkg:composer/symfony/serializer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.9","status":"affected","fixed":"7.1.0"}],"ecosystem":"Packagist","package":"symfony/serializer","purl":"pkg:composer/symfony/serializer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.1.2","status":"affected","fixed":"7.4.23"}],"ecosystem":"Packagist","package":"symfony/serializer","purl":"pkg:composer/symfony/serializer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.1.11"}],"ecosystem":"Packagist","package":"symfony/serializer","purl":"pkg:composer/symfony/serializer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.4.56"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.4.9","status":"affected","fixed":"6.4.50"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.9","status":"affected","fixed":"7.1.0"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.1.2","status":"affected","fixed":"7.4.23"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.1.11"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-hqp2-7rr8-hf26","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/symfony/symfony/commit/fcaf87a93c7fa5b7fe9e9e8382d4ed0d0c52c67c","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/symfony/symfony/commit/9f7390678a255f7962fb1c81c42b26fa907d3437","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-122053","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/serializer/CVE-2026-122053.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-122053.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/symfony","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/symfony/symfony/releases/tag/v5.4.56","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/symfony/releases/tag/v6.4.50","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/symfony/releases/tag/v7.4.23","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/symfony/releases/tag/v8.1.11","tags":["web"],"sources":["ghsa"]}],"credits":["Alexandre Daubois","Nicolas Grekas","The PHP Foundation"],"assigner":"Checkmarx","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-06T20:39:21.488Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-122053","url":"https://www.cve.org/CVERecord?id=CVE-2026-122053","licence":"CVE Terms of Use","modified":"2026-11-06T20:39:54.876Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hqp2-7rr8-hf26","url":"https://github.com/advisories/GHSA-hqp2-7rr8-hf26","licence":"CC-BY-4.0","modified":"2026-12-01T21:30:04.501Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-122053","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-122053","licence":"Public domain","modified":"2026-11-06T21:40:43.450Z"}],"updatedAt":"2026-12-01T21:47:10.980Z","epss":{"score":0.00327,"percentile":0.27877,"date":"2026-12-01T12:00:22.000Z"}}