CVE-2026-133761 in Serializerinfo

Summary

by MITRE • 11/25/2026

CsvEncoder::decode() splits each header cell on the key separator, . by default, and nests the decoded rows one level per separator, with no limit. PHP frees nested arrays recursively, so freeing data that is nested deeply enough overflows the C stack and crashes the process. With a stack of 8 MB, a CSV body of 448 KB is enough.

Each row also builds all the levels of its headers again. With a deep header, a CSV body of 2 KB made of short rows allocates more than 128 MB. A body of 1 MB keeps the CPU busy for 10 seconds or more.

Any code that decodes untrusted CSV with the Serializer is affected. From Symfony 7.4.0, this included every #[MapRequestPayload] argument that doesn't restrict acceptFormat, until 7.4.23 and 8.1.11 stopped decoding CSV payloads by default.

CSV headers can now be nested up to 512 levels, the default depth of json_decode(). Decoding also stops when the rows go through more than 16 header levels, or create more than 4 arrays, per byte of data. A header row of up to 5 levels always fits, whatever the rows contain. Beyond these limits, decode() throws a NotEncodableValueException, which #[MapRequestPayload] turns into a 400 response.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/26/2026

The vulnerability identified in Symfony's CSV serialization component represents a critical resource exhaustion flaw stemming from unbounded recursion and excessive memory allocation during the parsing of nested header structures. The core technical issue resides within the CsvEncoder::decode() method, which processes CSV files by splitting each header cell on a key separator, typically a dot character. This mechanism allows for the creation of deeply nested array structures where each level of nesting corresponds to one instance of the separator in the header row. Because there was previously no limit imposed on this depth, an attacker could craft a maliciously structured CSV file with headers containing numerous consecutive separators. When such a file is processed by PHP's memory management system, which frees nested arrays recursively, the deep recursion leads to a stack overflow that crashes the process. This constitutes a classic denial of service scenario where the availability of the application is compromised through simple input manipulation without requiring authentication or complex exploitation techniques beyond providing specific data payloads.

The operational impact extends beyond immediate process termination due to stack exhaustion. The vulnerability also facilitates severe memory consumption and CPU abuse, even with relatively small file sizes. For instance, a CSV body of merely 448 KB can trigger the recursive freeing mechanism that overflows an eight-megabyte C stack. Furthermore, because each row reconstructs all levels of its headers, deep header structures cause exponential growth in resource usage. A modest CSV body of two kilobytes composed of short rows was observed to allocate more than one hundred twenty-eight megabytes of memory. Additionally, a larger payload of one megabyte can keep the CPU busy for ten seconds or longer, effectively creating a sustained denial of service condition that degrades system performance and potentially impacts other services sharing resources on the same host. Any code path that decodes untrusted CSV data using the affected Serializer implementation is susceptible to these attacks, making it a widespread risk across applications relying on this functionality.

This vulnerability specifically impacted Symfony versions prior to 7.4.23 and 8.1.11. A significant attack vector involved the #[MapRequestPayload] attribute introduced in Symfony 7.4.0, which automatically deserializes request payloads based on content type or format hints. By default, this feature included CSV decoding unless explicitly restricted via acceptFormat constraints. Consequently, any API endpoint accepting CSV-formatted data through this mechanism was vulnerable to exploitation until the patch was applied. The lack of input validation allowed external actors to send crafted HTTP requests containing maliciously nested headers, triggering the resource exhaustion flaws described above without needing prior access or elevated privileges in many configurations.

To mitigate these risks, Symfony has implemented strict limits on header nesting and array creation during decoding processes. Headers are now restricted to a maximum depth of five hundred twelve levels, aligning with the default recursion limit used by json_decode() for consistency across serialization formats. Additionally, the decoder enforces stricter constraints per byte of data: it stops processing if rows traverse more than sixteen header levels or generate more than four arrays per byte. These thresholds are designed to prevent both stack overflows and excessive memory allocation while still allowing legitimate use cases; a header row with up to five nesting levels is guaranteed to fit within these limits regardless of the subsequent row content. When input exceeds these boundaries, the decode() method throws a NotEncodableValueException, which #[MapRequestPayload] translates into an HTTP 400 Bad Request response, thereby failing securely and preventing further processing of malicious payloads.

From a security classification perspective, this vulnerability aligns with CWE-787: Out-of-bounds Write in the context of stack overflow leading to process crash, as well as CWE-400: Uncontrolled Resource Consumption due to the excessive memory and CPU usage caused by deeply nested structures. In terms of adversarial tactics, it maps to ATT&CK technique T1496: Resource Hijacking, where attackers consume system resources to degrade service availability. The fix emphasizes the importance of enforcing strict input validation limits on serialization parameters, particularly for formats that support hierarchical data representation like CSV with dot-separated keys. Developers should ensure they are running patched versions and consider explicitly restricting accepted content types in #[MapRequestPayload] attributes to minimize exposure surface area against similar deserialization-based attacks.

Responsible

Symfony

Reservation

11/20/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00642

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!