Search

Find a vulnerability

Search criteria

    4 vulnerabilities found for symfony/serializer by Symfony

    CVE-2026-133761 (GCVE-0-2026-133761)

    Vulnerability from nvd – Published: 2026-11-25 10:00 – Updated: 2026-11-25 10:00
    VLAI
    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. 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.
    CWE
    • CWE-674 - Uncontrolled Recursion
    • CWE-770 - Allocation of Resources Without Limits or Throttling
    Impacted products
    Vendor Product Version
    Symfony symfony/serializer Affected: 0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Symfony symfony/symfony Affected: 0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Date Public
    2026-11-25 09:36
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/serializer",
              "product": "symfony/serializer",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "5.4.57",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "6.4.51",
                  "status": "affected",
                  "version": "6.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/symfony",
              "product": "symfony/symfony",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "5.4.57",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "6.4.51",
                  "status": "affected",
                  "version": "6.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Jack Worman"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Nicolas Grekas"
            }
          ],
          "datePublic": "2026-11-25T09:36:41.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "`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\u0027t 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."
                }
              ],
              "value": "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\u0027t 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."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "vectorString": "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",
                "version": "4.0"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-674",
                  "description": "CWE-674 Uncontrolled Recursion",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-770",
                  "description": "CWE-770 Allocation of Resources Without Limits or Throttling",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T10:00:20.081Z",
            "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "shortName": "Symfony"
          },
          "references": [
            {
              "name": "CVE-2026-133761",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://symfony.com/cve-2026-133761"
            },
            {
              "name": "GHSA-4xg9-mw5c-qq5p",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/symfony/symfony/security/advisories/GHSA-4xg9-mw5c-qq5p"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/f9b2704b31e637cc79d6522b5743ba1bcaeb4602"
            }
          ],
          "source": {
            "advisory": "GHSA-4xg9-mw5c-qq5p",
            "discovery": "UNKNOWN"
          },
          "title": "CsvEncoder Nests Rows Once per Key Separator of a Header, Letting a Small CSV Payload Crash PHP",
          "x_generator": {
            "engine": "symfony/ghsa-to-cve"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "assignerShortName": "Symfony",
        "cveId": "CVE-2026-133761",
        "datePublished": "2026-11-25T10:00:20.081Z",
        "dateReserved": "2026-11-20T14:01:43.158Z",
        "dateUpdated": "2026-11-25T10:00:20.081Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-133752 (GCVE-0-2026-133752)

    Vulnerability from nvd – Published: 2026-11-25 10:00 – Updated: 2026-11-25 10:00
    VLAI
    Title
    The Serializer Doesn't Enforce #[Ignore] on the Class Picked by a Discriminator Map or object_to_populate
    Summary
    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.
    CWE
    • CWE-915 - Improperly Controlled Modification of Dynamically-Determined Object Attributes
    Impacted products
    Vendor Product Version
    Symfony symfony/serializer Affected: 5.1.0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Symfony symfony/symfony Affected: 5.1.0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Date Public
    2026-11-25 09:36
    Show details on NVD website

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

    CVE-2026-133761 (GCVE-0-2026-133761)

    Vulnerability from cvelistv5 – Published: 2026-11-25 10:00 – Updated: 2026-11-25 10:00
    VLAI
    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. 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.
    CWE
    • CWE-674 - Uncontrolled Recursion
    • CWE-770 - Allocation of Resources Without Limits or Throttling
    Impacted products
    Vendor Product Version
    Symfony symfony/serializer Affected: 0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Symfony symfony/symfony Affected: 0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Date Public
    2026-11-25 09:36
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/serializer",
              "product": "symfony/serializer",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "5.4.57",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "6.4.51",
                  "status": "affected",
                  "version": "6.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/symfony",
              "product": "symfony/symfony",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "5.4.57",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "6.4.51",
                  "status": "affected",
                  "version": "6.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Jack Worman"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Nicolas Grekas"
            }
          ],
          "datePublic": "2026-11-25T09:36:41.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "`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\u0027t 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."
                }
              ],
              "value": "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\u0027t 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."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "vectorString": "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",
                "version": "4.0"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-674",
                  "description": "CWE-674 Uncontrolled Recursion",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-770",
                  "description": "CWE-770 Allocation of Resources Without Limits or Throttling",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T10:00:20.081Z",
            "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "shortName": "Symfony"
          },
          "references": [
            {
              "name": "CVE-2026-133761",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://symfony.com/cve-2026-133761"
            },
            {
              "name": "GHSA-4xg9-mw5c-qq5p",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/symfony/symfony/security/advisories/GHSA-4xg9-mw5c-qq5p"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/f9b2704b31e637cc79d6522b5743ba1bcaeb4602"
            }
          ],
          "source": {
            "advisory": "GHSA-4xg9-mw5c-qq5p",
            "discovery": "UNKNOWN"
          },
          "title": "CsvEncoder Nests Rows Once per Key Separator of a Header, Letting a Small CSV Payload Crash PHP",
          "x_generator": {
            "engine": "symfony/ghsa-to-cve"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "assignerShortName": "Symfony",
        "cveId": "CVE-2026-133761",
        "datePublished": "2026-11-25T10:00:20.081Z",
        "dateReserved": "2026-11-20T14:01:43.158Z",
        "dateUpdated": "2026-11-25T10:00:20.081Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-133752 (GCVE-0-2026-133752)

    Vulnerability from cvelistv5 – Published: 2026-11-25 10:00 – Updated: 2026-11-25 10:00
    VLAI
    Title
    The Serializer Doesn't Enforce #[Ignore] on the Class Picked by a Discriminator Map or object_to_populate
    Summary
    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.
    CWE
    • CWE-915 - Improperly Controlled Modification of Dynamically-Determined Object Attributes
    Impacted products
    Vendor Product Version
    Symfony symfony/serializer Affected: 5.1.0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Symfony symfony/symfony Affected: 5.1.0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Date Public
    2026-11-25 09:36
    Show details on NVD website

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