Security mailing lists by PureSourceCode

CVE-2026-122053

MEDIUM 6.9CVSS 4.0

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

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.

Published
6 Nov 2026
Last modified
1 Dec 2026
Assigned by
596c5446-0ce5-4ba2-aa66-48b3b757a647
NVD status
Awaiting Analysis
Weakness
CWE-915
Also known as
GHSA-hqp2-7rr8-hf26
Sources
NVDJSONOSV GHSA-hqp2-7rr8-hf26JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 596c5446-0ce5-4ba2-aa66-48b3b757a647 (Secondary) CVSS 4.0 MEDIUM 6.9 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
OSV GitHub CVSS 4.0 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
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Packagist symfony/serializer < 5.4.56 5.4.56
OSV Packagist symfony/serializer >= 6.4.9, < 6.4.50 6.4.50
OSV Packagist symfony/serializer >= 7.0.9, < 7.1.0 7.1.0
OSV Packagist symfony/serializer >= 7.1.2, < 7.4.23 7.4.23
OSV Packagist symfony/serializer >= 8.0.0, < 8.1.11 8.1.11
OSV Packagist symfony/symfony < 5.4.56 5.4.56
OSV Packagist symfony/symfony >= 6.4.9, < 6.4.50 6.4.50
OSV Packagist symfony/symfony >= 7.0.9, < 7.1.0 7.1.0
OSV Packagist symfony/symfony >= 7.1.2, < 7.4.23 7.4.23
OSV Packagist symfony/symfony >= 8.0.0, < 8.1.11 8.1.11

References

History

  • 1 Dec 2026 22:45 UTC · OSV: first stored (published 1 Dec 2026)
  • 25 Nov 2026 21:23 UTC · NVD: first stored (published 6 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.