{"api_version":"1","generated_at":"2026-11-24T13:50:10+00:00","cve":"CVE-2026-133772","urls":{"html":"https://cve.report/CVE-2026-133772","api":"https://cve.report/api/cve/CVE-2026-133772.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-133772","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-133772"},"summary":{"title":"Sandbox Tag Allow-List Bypass via the Branch of a `guard` Tag That Isn't Selected","description":"The guard tag compiles only one of its branches, depending on whether a callable exists. The other branch was still parsed, though. The extends, use, macro and block tags in it registered their effects on the template. The sandbox doesn't see these tags, since that branch isn't compiled. A sandboxed template allowed to use guard could therefore extend a template, import blocks and define macros, while the policy doesn't allow these tags:\n\n{% guard filter upper %}{% else %}{% extends \"parent.html\" %}{% endguard %}\n\nThe templates reached this way come from the loader of the sandbox, and they are sandboxed too.\n\nWhat the branch that isn't selected registers on the parser is now discarded.","state":"PUBLISHED","assigner":"Symfony","published_at":"2026-11-24 13:17:25","updated_at":"2026-11-24 13:17:25"},"problem_types":["CWE-863","CWE-863 CWE-863 Incorrect Authorization"],"metrics":[{"version":"4.0","source":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","type":"Secondary","score":"2.3","severity":"LOW","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","data":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":2.3,"baseSeverity":"LOW","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}},{"version":"4.0","source":"CNA","type":"CVSS","score":"2.3","severity":"LOW","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","data":{"baseScore":2.3,"baseSeverity":"LOW","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"}}],"references":[{"url":"https://github.com/twigphp/Twig/commit/d5011f4654042f03d8986b5b3ba12a4d85f976f8","name":"https://github.com/twigphp/Twig/commit/d5011f4654042f03d8986b5b3ba12a4d85f976f8","refsource":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://symfony.com/cve-2026-133772","name":"https://symfony.com/cve-2026-133772","refsource":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-qr49-4294-4gmw","name":"https://github.com/twigphp/Twig/security/advisories/GHSA-qr49-4294-4gmw","refsource":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-133772","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133772","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Twig","product":"twig/twig","version":"affected 3.15.0 3.31.0 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"Fabien Potencier","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"collectionURL":"https://packagist.org","defaultStatus":"unaffected","packageName":"twig/twig","product":"twig/twig","repo":"https://github.com/twigphp/Twig","vendor":"Twig","versions":[{"lessThan":"3.31.0","status":"affected","version":"3.15.0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"remediation developer","value":"Fabien Potencier"}],"datePublic":"2026-11-24T12:58:51.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/markdown","value":"The `guard` tag compiles only one of its branches, depending on whether a callable exists. The other branch was still parsed, though. The `extends`, `use`, `macro` and `block` tags in it registered their effects on the template. The sandbox doesn't see these tags, since that branch isn't compiled. A sandboxed template allowed to use `guard` could therefore extend a template, import blocks and define macros, while the policy doesn't allow these tags:\n\n```twig\n{% guard filter upper %}{% else %}{% extends \"parent.html\" %}{% endguard %}\n```\n\nThe templates reached this way come from the loader of the sandbox, and they are sandboxed too.\n\nWhat the branch that isn't selected registers on the parser is now discarded."}],"value":"The guard tag compiles only one of its branches, depending on whether a callable exists. The other branch was still parsed, though. The extends, use, macro and block tags in it registered their effects on the template. The sandbox doesn't see these tags, since that branch isn't compiled. A sandboxed template allowed to use guard could therefore extend a template, import blocks and define macros, while the policy doesn't allow these tags:\n\n{% guard filter upper %}{% else %}{% extends \"parent.html\" %}{% endguard %}\n\nThe templates reached this way come from the loader of the sandbox, and they are sandboxed too.\n\nWhat the branch that isn't selected registers on the parser is now discarded."}],"metrics":[{"cvssV4_0":{"baseScore":2.3,"baseSeverity":"LOW","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","description":"CWE-863 Incorrect Authorization","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-24T13:07:54.995Z","orgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","shortName":"Symfony"},"references":[{"name":"CVE-2026-133772","tags":["vendor-advisory"],"url":"https://symfony.com/cve-2026-133772"},{"name":"GHSA-qr49-4294-4gmw","tags":["vendor-advisory"],"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-qr49-4294-4gmw"},{"tags":["patch"],"url":"https://github.com/twigphp/Twig/commit/d5011f4654042f03d8986b5b3ba12a4d85f976f8"}],"source":{"advisory":"GHSA-qr49-4294-4gmw","discovery":"UNKNOWN"},"title":"Sandbox Tag Allow-List Bypass via the Branch of a `guard` Tag That Isn't Selected","x_generator":{"engine":"symfony/ghsa-to-cve"}}},"cveMetadata":{"assignerOrgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","assignerShortName":"Symfony","cveId":"CVE-2026-133772","datePublished":"2026-11-24T13:07:54.995Z","dateReserved":"2026-11-20T14:01:43.159Z","dateUpdated":"2026-11-24T13:07:54.995Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-24 13:17:25","lastModifiedDate":"2026-11-24 13:17:25","problem_types":["CWE-863","CWE-863 CWE-863 Incorrect Authorization"],"metrics":{"cvssMetricV40":[{"source":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","type":"Secondary","cvssData":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":2.3,"baseSeverity":"LOW","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"133772","Ordinal":"1","Title":"Sandbox Tag Allow-List Bypass via the Branch of a `guard` Tag Th","CVE":"CVE-2026-133772","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"133772","Ordinal":"1","NoteData":"The guard tag compiles only one of its branches, depending on whether a callable exists. The other branch was still parsed, though. The extends, use, macro and block tags in it registered their effects on the template. The sandbox doesn't see these tags, since that branch isn't compiled. A sandboxed template allowed to use guard could therefore extend a template, import blocks and define macros, while the policy doesn't allow these tags:\n\n{% guard filter upper %}{% else %}{% extends \"parent.html\" %}{% endguard %}\n\nThe templates reached this way come from the loader of the sandbox, and they are sandboxed too.\n\nWhat the branch that isn't selected registers on the parser is now discarded.","Type":"Description","Title":"Sandbox Tag Allow-List Bypass via the Branch of a `guard` Tag Th"}]}}}