- Accueil
- Vulnérabilités
- CVE-2026-122053
CVE-2026-122053
Symfony: ObjectNormalizer Dotted-Key Property-Path Traversal Bypasses #[Ignore] on Nested Objects
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Packagist (10 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| symfony/serializer | avant 5.4.56 (exclu) |
5.4.56 |
GitHub Advisory |
| symfony/serializer | de 6.4.9 (inclus) à 6.4.50 (exclu) |
6.4.50 |
GitHub Advisory |
| symfony/serializer | de 7.0.9 (inclus) à 7.1.0 (exclu) |
7.1.0 |
GitHub Advisory |
| symfony/serializer | de 7.1.2 (inclus) à 7.4.23 (exclu) |
7.4.23 |
GitHub Advisory |
| symfony/serializer | de 8.0.0 (inclus) à 8.1.11 (exclu) |
8.1.11 |
GitHub Advisory |
| symfony/symfony | avant 5.4.56 (exclu) |
5.4.56 |
GitHub Advisory |
| symfony/symfony | de 6.4.9 (inclus) à 6.4.50 (exclu) |
6.4.50 |
GitHub Advisory |
| symfony/symfony | de 7.0.9 (inclus) à 7.1.0 (exclu) |
7.1.0 |
GitHub Advisory |
| symfony/symfony | de 7.1.2 (inclus) à 7.4.23 (exclu) |
7.4.23 |
GitHub Advisory |
| symfony/symfony | de 8.0.0 (inclus) à 8.1.11 (exclu) |
8.1.11 |
GitHub Advisory |
Correctif
Mise à jour — Packagist/symfony/serializer 5.4.56; Packagist/symfony/serializer 6.4.50; Packagist/symfony/serializer 7.1.0; Packagist/symfony/serializer 7.4.23; Packagist/symfony/serializer 8.1.11; Packagist/symfony/symfony 5.4.56; Packagist/symfony/symfony 6.4.50; Pacsource officielle
Packagist/symfony/serializer 5.4.56; Packagist/symfony/serializer 6.4.50; Packagist/symfony/serializer 7.1.0; Packagist/symfony/serializer 7.4.23; Packagist/symfony/serializer 8.1.11; Packagist/symfony/symfony 5.4.56; Packagist/symfony/symfony 6.4.50; Packagist/symfony/symfony 7.1.0; Packagist/symfony/symfony 7.4.23; Packagist/symfony/symfony 8.1.11
Source : GitHub Advisory
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-hqp2-7rr8-hf26 — Symfony: ObjectNormalizer Dotted-Key Property-Path Traversal Bypasses #[Ignore] on Nested Objects 1 déc. 2026
Références
- https://github.com/symfony/symfony/commit/fcaf87a93c7fa5b7fe9e9e8382d4ed0d0c52c67cpatch
- https://github.com/symfony/symfony/commit/9f7390678a255f7962fb1c81c42b26fa907d3437patch
- https://github.com/symfony/symfony/security/advisories/GHSA-hqp2-7rr8-hf26third-party-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-122053ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/serializer/CVE-2026-122053.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-122053.yamlWEB
- https://github.com/symfony/symfonyPACKAGE
- https://github.com/symfony/symfony/releases/tag/v5.4.56WEB
- https://github.com/symfony/symfony/releases/tag/v6.4.50WEB
- https://github.com/symfony/symfony/releases/tag/v7.4.23WEB
- https://github.com/symfony/symfony/releases/tag/v8.1.11WEB
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- CNA (éditeur ou attributeur)
- Vecteur CVSS
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(CVSS 4.0, CNA:Checkmarx)- Faiblesse
- CWE-915 · Autre (CWE-915)