Read the docs

Serializer ignores #[Ignore] on discriminator-mapped classes in Symfony

Priority LOW 30CWE-915Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Tampering
Confidentiality · integrity · availability
None · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-915.

Summary

Symfony's serializer component (symfony/serializer and symfony/symfony) from 5.1.0 before 5.4.57, 6.0.0 before 6.4.51, 7.0.0 before 7.4.24 and 8.0.0 before 8.1.12 writes into the wrong class when denormalizing. It computes allowed attributes for the requested class, not for the class a discriminator map picks or the class of object_to_populate, so a client can set properties marked #[Ignore], including constructor arguments. An unauthenticated remote attacker can exploit this by sending a crafted payload when the requested class has no #[Ignore] attribute and no groups are set. The flaw is classified under CWE-915.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00861 56th percentileScored 2026-11-30
Fix Fixed symfony/serializer (Symfony): 5.4.57, 6.4.51, 7.4.24 +1symfony/symfony (Symfony): 5.4.57, 6.4.51, 7.4.24 +1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
symfonysymfony/serializer5.1.0 to before 5.4.57; 6.0.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.125.4.57, 6.4.51, 7.4.24, 8.1.12Patch availableCNA
symfonysymfony/symfony5.1.0 to before 5.4.57; 6.0.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.125.4.57, 6.4.51, 7.4.24, 8.1.12Patch availableCNA
  • symfony/serializer Vendorsymfony Affected 5.1.0 to before 5.4.57; 6.0.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12 Patch available CNA
  • symfony/symfony Vendorsymfony Affected 5.1.0 to before 5.4.57; 6.0.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12 Patch available CNA

Remediation

Upgrade symfony/serializer and symfony/symfony to 5.4.57, 6.4.51, 7.4.24 or 8.1.12, depending on the release line in use.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA symfony/serializer (Symfony) Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12
  • Fix · CNA symfony/symfony (Symfony) Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    symfony/symfony 5.4.57, 6.4.51 and 2 more versions

    13 records Highest priority Priority MEDIUM 2 MEDIUM, 11 LOW

    Other records, highest priority first

    • TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHPPriority MEDIUM 45
    • TI-2026-98148 Nested short ternaries make the Symfony expression parser hangPriority MEDIUM 45
    • TI-2026-98153 HttpClient lets a Proxy header choose the proxy under the CLI SAPIPriority LOW 37
  • Release ·

    symfony/serializer 5.4.57, 6.4.51 and 2 more versions

    2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHPPriority MEDIUM 45

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-133752
  2. 2026-11-25 CISA SSVC decision points changed
  3. 2026-11-26 EPSS moved to the 50th–90th percentile

References

  • TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
  • TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
  • TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
  • TI-2022-08704 Symfony storing cookie headers in HttpCache CVSS 3.1HIGH 8.8
  • TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHP CVSS 4.0HIGH 8.7
  • TI-2026-98148 Nested short ternaries make the Symfony expression parser hang CVSS 4.0HIGH 8.7
See all 129 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences