{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-133768", "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6", "state": "PUBLISHED", "assignerShortName": "Symfony", "dateReserved": "2026-11-20T14:01:43.159Z", "datePublished": "2026-11-24T13:07:51.336Z", "dateUpdated": "2026-11-24T13:07:51.336Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6", "shortName": "Symfony", "dateUpdated": "2026-11-24T13:07:51.336Z" }, "title": "Sandbox property allow-list bypass via the `join` filter on non-iterable objects", "datePublic": "2026-11-24T12:58:41.000Z", "descriptions": [ { "lang": "en", "value": "The join filter converted a value that isn't iterable with (array) $value. For an object, that gives every property, including the private and protected ones. A sandboxed template allowed to use join could therefore print properties that the policy denies, and that templates can't read otherwise:\n\n{{ user|join(',') }}\n\nA value that isn't iterable is now joined as a single item. A Stringable object prints its checked string, and other objects throw, as with the first and last filters.", "supportingMedia": [ { "type": "text/markdown", "base64": false, "value": "The `join` filter converted a value that isn't iterable with `(array) $value`. For an object, that gives every property, including the private and protected ones. A sandboxed template allowed to use `join` could therefore print properties that the policy denies, and that templates can't read otherwise:\n\n```twig\n{{ user|join(',') }}\n```\n\nA value that isn't iterable is now joined as a single item. A `Stringable` object prints its checked string, and other objects throw, as with the `first` and `last` filters." } ] } ], "affected": [ { "vendor": "Twig", "product": "twig/twig", "collectionURL": "https://packagist.org", "packageName": "twig/twig", "repo": "https://github.com/twigphp/Twig", "defaultStatus": "unaffected", "versions": [ { "version": "0", "status": "affected", "lessThan": "3.31.1", "versionType": "semver" } ] } ], "problemTypes": [ { "descriptions": [ { "lang": "en", "cweId": "CWE-863", "description": "CWE-863 Incorrect Authorization", "type": "CWE" } ] } ], "metrics": [ { "format": "CVSS", "scenarios": [ { "lang": "en", "value": "GENERAL" } ], "cvssV4_0": { "version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N", "baseScore": 5.3, "baseSeverity": "MEDIUM" } } ], "references": [ { "url": "https://symfony.com/cve-2026-133768", "name": "CVE-2026-133768", "tags": [ "vendor-advisory" ] }, { "url": "https://github.com/twigphp/Twig/security/advisories/GHSA-p2x6-ppf3-32r3", "name": "GHSA-p2x6-ppf3-32r3", "tags": [ "vendor-advisory" ] }, { "url": "https://github.com/twigphp/Twig/commit/6bcede134671133a4a056199af5cf4749d189d72", "tags": [ "patch" ] } ], "credits": [ { "lang": "en", "value": "Fabien Potencier", "type": "remediation developer" } ], "source": { "advisory": "GHSA-p2x6-ppf3-32r3", "discovery": "UNKNOWN" }, "x_generator": { "engine": "symfony/ghsa-to-cve" } } } }