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

Published Nov 25, 2026
·
Updated

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 objecttopopulate or deepobjecttopopulate 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.

Affected Software

1 affected component
composer/symfony/serializer

Event History

Nov 25, 2026
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
DescriptionWeakness

Frequently Asked Questions

1

Which application flows are exposed?

Flows that denormalize client-controlled data into a requested type while a discriminator map selects a different concrete class are exposed. Flows using object_to_populate or deep_object_to_populate are also exposed when the supplied object has a different class than the requested class.

2

What does an attacker need to do to set a restricted property?

The attacker needs to submit data that causes denormalization into the selected or populated class and include the restricted property in the payload. This can affect properties marked #[Ignore], including constructor arguments.

3

Are applications without serialization groups affected?

Yes. When the requested class has no #[Ignore] attribute and no groups are set in the context, attribute writes were unrestricted for the class actually selected or populated. The example request payload can set skipModeration on the discriminator-selected EmailNotification class.

4

Can configured groups prevent exploitation?

Not reliably in the affected cases. A property outside the configured groups could still be set when another class in the discriminator map has a property with the same name in one of those groups.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203