{"id":"CVE-2026-133761","aliases":["CVE-2026-133761"],"related":[],"kind":"vulnerability","state":"published","title":"CsvEncoder Nests Rows Once per Key Separator of a Header, Letting a Small CSV Payload Crash PHP","summary":"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.\n\nEach 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.\n\nAny 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.\n\nCSV 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nEach 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.\n\nAny 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.\n\nCSV 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.","source":"cvelist"}],"published":"2026-11-25T10:00:20.081Z","modified":"2026-11-30T15:29:56.663Z","severity":{"scorer":"Symfony","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"Symfony","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"}],"cwes":["CWE-674","CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"5.4.57","status":"affected"},{"type":"semver","introduced":"6.0.0","fixed":"6.4.51","status":"affected"},{"type":"semver","introduced":"7.0.0","fixed":"7.4.24","status":"affected"},{"type":"semver","introduced":"8.0.0","fixed":"8.1.12","status":"affected"}],"vendor":"Symfony","product":"symfony/serializer","package":"symfony/serializer","repo":"https://github.com/symfony/symfony","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"5.4.57","status":"affected"},{"type":"semver","introduced":"6.0.0","fixed":"6.4.51","status":"affected"},{"type":"semver","introduced":"7.0.0","fixed":"7.4.24","status":"affected"},{"type":"semver","introduced":"8.0.0","fixed":"8.1.12","status":"affected"}],"vendor":"Symfony","product":"symfony/symfony","package":"symfony/symfony","repo":"https://github.com/symfony/symfony","source":"cvelist"}],"references":[{"url":"https://symfony.com/cve-2026-133761","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-4xg9-mw5c-qq5p","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/symfony/symfony/commit/f9b2704b31e637cc79d6522b5743ba1bcaeb4602","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":["Jack Worman","Nicolas Grekas"],"assigner":"Symfony","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-25T19:51:28.917Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-133761","url":"https://www.cve.org/CVERecord?id=CVE-2026-133761","licence":"CVE Terms of Use","modified":"2026-11-25T20:00:26.859Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-133761","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133761","licence":"Public domain","modified":"2026-11-30T15:29:56.663Z"}],"updatedAt":"2026-11-30T15:32:18.296Z","epss":{"score":0.00642,"percentile":0.52101,"date":"2026-12-01T12:00:22.000Z"}}