Security mailing lists by PureSourceCode

CVE-2026-133752

MEDIUM 6.3CVSS 4.0

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

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.

Published
25 Nov 2026
Last modified
30 Nov 2026
Assigned by
b5aa5c7f-767d-4597-9c64-3ac08b8711c6
NVD status
Awaiting Analysis
Weakness
CWE-915
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD b5aa5c7f-767d-4597-9c64-3ac08b8711c6 (Secondary) CVSS 4.0 MEDIUM 6.3 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/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
CVE List Symfony CVSS 4.0 MEDIUM 6.3 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
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://packagist.org 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, 6.4.51, 7.4.24, 8.1.12
CVE List https://packagist.org 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, 6.4.51, 7.4.24, 8.1.12

References

History

  • 30 Nov 2026 15:31 UTC · NVD: status Received → Awaiting Analysis
  • 25 Nov 2026 20:55 UTC · CVE List: first stored (published 25 Nov 2026)
  • 25 Nov 2026 20:30 UTC · NVD: updated (other details)
  • 25 Nov 2026 20:11 UTC · NVD: first stored (published 25 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.