CVE-2026-133752 in serializer
Summary
by MITRE • 11/25/2026
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.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
This vulnerability represents a critical logic flaw within PHP’s Serializer component, specifically affecting the ObjectNormalizer, PropertyNormalizer, and GetSetMethodNormalizers during data denormalization processes involving polymorphic types or object population strategies. The core issue stems from an incorrect scope of attribute filtering where the serializer computes allowed attributes based on the requested class metadata rather than the actual target class into which data is being written. This architectural oversight allows attackers to bypass intended access controls and write properties that should be restricted, leading to potential unauthorized state modification or logic manipulation within application objects.
The technical flaw manifests primarily in two scenarios involving discriminator maps and object population options. In the first scenario, when a serializer processes polymorphic data using a #[DiscriminatorMap], it selects a specific subclass based on a type property but incorrectly applies filtering rules from the abstract parent class rather than the concrete child class. For instance, if an abstract Notification class defines a map pointing to EmailNotification, and EmailNotification marks skipModeration with #[Ignore], the serializer previously failed to respect this restriction when denormalizing data for that specific subclass. Consequently, client-supplied payloads could set properties explicitly marked as ignored in the target class, effectively bypassing developer-intended security boundaries.
The second scenario involves the object_to_populate and deep_object_to_populate options, where an existing object instance is passed to be populated with new data from a request payload. In this context, if the requested class lacks #[Ignore] attributes or group restrictions in its own metadata, but the actual target object belongs to a different class that does impose such restrictions, those restrictions were ignored. This allowed clients to overwrite properties on existing objects that should have remained immutable or protected by access control lists defined in the target class’s metadata. Additionally, when groups are specified in the context, properties outside these groups could be set if another class within a discriminator map contained a property with the same name inside one of those groups, further exacerbating the scope of unauthorized writes.
The operational impact of this vulnerability is significant for applications relying on strict input validation and access control through serializer metadata. Attackers can manipulate internal object states by setting properties that are meant to be ignored or restricted, potentially leading to privilege escalation, data integrity violations, or bypassing business logic constraints such as moderation flags or security checks embedded in property setters. This affects systems using Symfony Serializer for API request handling via attributes like #[MapRequestPayload], where untrusted input directly influences object construction and state mutation without adequate validation against the target class’s actual metadata rules.
Mitigation strategies involve upgrading to patched versions of the affected components, which resolve this issue by ensuring that attribute filtering is computed based on the actual class into which data is being written rather than just the requested type. Developers should also review their use of discriminator maps and object population options to ensure that security-critical properties are consistently protected across all potential target classes in inheritance hierarchies. Implementing additional validation layers outside the serializer, such as custom normalizers or post-construction checks, can provide defense-in-depth against similar logic flaws where metadata resolution order might be exploited.
From a classification perspective, this vulnerability aligns with CWE-20 Improper Input Validation and CWE-915 Use of Incorrectly-Resolved Authority or Identification, as the system fails to correctly identify which set of access rules applies during object instantiation. In terms of attack vectors, it relates to ATT&CK technique T1136 Create Account, where an attacker modifies internal state variables to establish unauthorized capabilities or bypass authentication mechanisms embedded within application logic through property manipulation rather than direct credential compromise.