Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Symfony | symfony/serializer | 5.1.0 – < 5.4.57, 6.0.0 – < 6.4.51, 7.0.0 – < 7.4.24, 8.0.0 – < 8.1.12 | 5.4.57 |
| Symfony | symfony/symfony | 5.1.0 – < 5.4.57, 6.0.0 – < 6.4.51, 7.0.0 – < 7.4.24, 8.0.0 – < 8.1.12 | 5.4.57 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | symfony | No fix yet | — |
| Debian 13 | symfony | 6.4.51+dfsg-0+deb13u1 | DSA-6668-1 |
| Debian 12 | symfony | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | symfony | No fix yet | — |
| Ubuntu 26.04 LTS | symfony | No fix yet | — |
| Ubuntu 16.04 LTS | symfony | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | symfony | No fix yet | — |
| Ubuntu Pro 22.04 LTS | symfony | No fix yet | — |
| Ubuntu Pro 20.04 LTS | symfony | No fix yet | — |
| Ubuntu Pro 18.04 LTS | symfony | No fix yet | — |
Advisories 1
- DSA-6668-1 symfony - security update Debian Security (DSA / DLA) · Nov 29, 2026
References
- CVE-2026-133752 vendor-advisory
- GHSA-qv8q-hf5w-5gjf vendor-advisory
- https://github.com/symfony/symfony/commit/2bb7b90d930573f3aabccb89d553d754316074c7 patch