{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-133752","assignerOrgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","state":"PUBLISHED","assignerShortName":"Symfony","dateReserved":"2026-11-20T14:01:43.157Z","datePublished":"2026-11-25T10:00:12.261Z","dateUpdated":"2026-11-25T10:00:12.261Z"},"containers":{"cna":{"providerMetadata":{"orgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","shortName":"Symfony","dateUpdated":"2026-11-25T10:00:12.261Z"},"title":"The Serializer Doesn't Enforce #[Ignore] on the Class Picked by a Discriminator Map or object_to_populate","datePublic":"2026-11-25T09:36:15.000Z","descriptions":[{"lang":"en","value":"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.\n\nWhen 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:\n\n#[DiscriminatorMap(typeProperty: 'kind', mapping: ['email' => EmailNotification::class])]\nabstract class Notification {}\n\nclass EmailNotification extends Notification\n{\n    #[Ignore]\n    public bool $skipModeration = false;\n}\n\nWith 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.\n\nThis affects ObjectNormalizer, PropertyNormalizer and GetSetMethodNormalizer.\n\nThe 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.","supportingMedia":[{"type":"text/markdown","base64":false,"value":"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.\n\nWhen 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:\n\n```php\n#[DiscriminatorMap(typeProperty: 'kind', mapping: ['email' => EmailNotification::class])]\nabstract class Notification {}\n\nclass EmailNotification extends Notification\n{\n    #[Ignore]\n    public bool $skipModeration = false;\n}\n```\n\nWith 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.\n\nThis affects `ObjectNormalizer`, `PropertyNormalizer` and `GetSetMethodNormalizer`.\n\nThe 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":[{"vendor":"Symfony","product":"symfony/serializer","collectionURL":"https://packagist.org","packageName":"symfony/serializer","repo":"https://github.com/symfony/symfony","defaultStatus":"unaffected","versions":[{"version":"5.1.0","status":"affected","lessThan":"5.4.57","versionType":"semver"},{"version":"6.0.0","status":"affected","lessThan":"6.4.51","versionType":"semver"},{"version":"7.0.0","status":"affected","lessThan":"7.4.24","versionType":"semver"},{"version":"8.0.0","status":"affected","lessThan":"8.1.12","versionType":"semver"}]},{"vendor":"Symfony","product":"symfony/symfony","collectionURL":"https://packagist.org","packageName":"symfony/symfony","repo":"https://github.com/symfony/symfony","defaultStatus":"unaffected","versions":[{"version":"5.1.0","status":"affected","lessThan":"5.4.57","versionType":"semver"},{"version":"6.0.0","status":"affected","lessThan":"6.4.51","versionType":"semver"},{"version":"7.0.0","status":"affected","lessThan":"7.4.24","versionType":"semver"},{"version":"8.0.0","status":"affected","lessThan":"8.1.12","versionType":"semver"}]}],"problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-915","description":"CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes","type":"CWE"}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","vectorString":"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","baseScore":6.3,"baseSeverity":"MEDIUM"}}],"references":[{"url":"https://symfony.com/cve-2026-133752","name":"CVE-2026-133752","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-qv8q-hf5w-5gjf","name":"GHSA-qv8q-hf5w-5gjf","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/symfony/commit/2bb7b90d930573f3aabccb89d553d754316074c7","tags":["patch"]}],"credits":[{"lang":"en","value":"Jack Worman","type":"remediation developer"},{"lang":"en","value":"Amimul Ihsan","type":"finder"}],"source":{"advisory":"GHSA-qv8q-hf5w-5gjf","discovery":"UNKNOWN"},"x_generator":{"engine":"symfony/ghsa-to-cve"}}}}