1. Accueil
  2. Vulnérabilités
  3. CVE-2026-133752

CVE-2026-133752

The Serializer Doesn't Enforce #[Ignore] on the Class Picked by a Discriminator Map or object_to_populate

Publiée le 25 nov. 2026 · modifiée le 30 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Moyen 40/100

Résumé

When it denormalizes data into a class, the Serializer computes which attributes it may write from the #[Ignore] and #[Groups] metadata. It did that for the requested class, but wrote into another class in two cases. The first case is the class that a discriminator map picks from the data. The second is the class of the object passed with the object_to_populate or deep_object_to_populate option. When the requested class has no #[Ignore] attribute and the context sets no groups, nothing was restricted. A client could then set a property that the picked class marks with #[Ignore], constructor arguments included: #[DiscriminatorMap(typeProperty: 'kind', mapping: ['email' => EmailNotification::class])] abstract class Notification {} class EmailNotification extends Notification { #[Ignore] public bool $skipModeration = false; } With a #[MapRequestPayload] Notification $notification argument, the payload {"kind":"email","skipModeration":true} set skipModeration. With groups in the context, a property outside these groups could be set too. This happened when another class of the map had a property with the same name in one of the groups. The same happened with #[Ignore] when the requested class declares the map itself. On 5.4, ObjectNormalizer also returned such properties when normalizing an object whose class declares the map itself. This affects ObjectNormalizer, PropertyNormalizer and GetSetMethodNormalizer. The Serializer now resolves the class it writes into first, and computes the allowed attributes for that class. The type property of a discriminator map is also written only when the metadata of that class allows it.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Symfony (8 ligne(s))
Symfony
ProduitVersionsCorrigé dansSource
symfony/serializer de 5.1.0 (inclus) à 5.4.57 (exclu) — CNA (éditeur ou attributeur)
symfony/serializer de 6.0.0 (inclus) à 6.4.51 (exclu) — CNA (éditeur ou attributeur)
symfony/serializer de 7.0.0 (inclus) à 7.4.24 (exclu) — CNA (éditeur ou attributeur)
symfony/serializer de 8.0.0 (inclus) à 8.1.12 (exclu) — CNA (éditeur ou attributeur)
symfony/symfony de 5.1.0 (inclus) à 5.4.57 (exclu) — CNA (éditeur ou attributeur)
symfony/symfony de 6.0.0 (inclus) à 6.4.51 (exclu) — CNA (éditeur ou attributeur)
symfony/symfony de 7.0.0 (inclus) à 7.4.24 (exclu) — CNA (éditeur ou attributeur)
symfony/symfony de 8.0.0 (inclus) à 8.1.12 (exclu) — CNA (éditeur ou attributeur)

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

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:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N (CVSS 4.0, CNA:Symfony)
Faiblesse
CWE-915 · Autre (CWE-915)

Comment sont obtenues et calculées ces données