CVE-2026-133772 (GCVE-0-2026-133772)
Vulnerability from cvelistv5 – Published: 2026-11-24 13:07 – Updated: 2026-11-24 13:07
VLAI
EPSS
VEX
Title
Sandbox Tag Allow-List Bypass via the Branch of a `guard` Tag That Isn't Selected
Summary
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:
{% guard filter upper %}{% else %}{% extends "parent.html" %}{% endguard %}
The templates reached this way come from the loader of the sandbox, and they are sandboxed too.
What the branch that isn't selected registers on the parser is now discarded.
Severity
CWE
- CWE-863 - Incorrect Authorization
References
3 references
| URL | Tags |
|---|---|
| https://symfony.com/cve-2026-133772 | vendor-advisory |
| https://github.com/twigphp/Twig/security/advisori… | vendor-advisory |
| https://github.com/twigphp/Twig/commit/d5011f4654… | patch |
Impacted products
Date Public
2026-11-24 12:58
{
"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\u0027t see these tags, since that branch isn\u0027t compiled. A sandboxed template allowed to use `guard` could therefore extend a template, import blocks and define macros, while the policy doesn\u0027t 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\u0027t 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\u0027t see these tags, since that branch isn\u0027t compiled. A sandboxed template allowed to use guard could therefore extend a template, import blocks and define macros, while the policy doesn\u0027t 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\u0027t 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\u0027t 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",
"vulnerability-lookup:meta": {
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"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"
}
]
}
],
"source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"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\u0027t see these tags, since that branch isn\u0027t compiled. A sandboxed template allowed to use guard could therefore extend a template, import blocks and define macros, while the policy doesn\u0027t 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\u0027t selected registers on the parser is now discarded."
}
],
"id": "CVE-2026-133772",
"lastModified": "2026-11-24T18:56:39.360",
"metrics": {
"cvssMetricV40": [
{
"cvssData": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"availabilityRequirement": "NOT_DEFINED",
"baseScore": 2.3,
"baseSeverity": "LOW",
"confidentialityRequirement": "NOT_DEFINED",
"exploitMaturity": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"privilegesRequired": "LOW",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"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",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"type": "Secondary"
}
]
},
"published": "2026-11-24T13:17:25.520",
"references": [
{
"source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"url": "https://github.com/twigphp/Twig/commit/d5011f4654042f03d8986b5b3ba12a4d85f976f8"
},
{
"source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"url": "https://github.com/twigphp/Twig/security/advisories/GHSA-qr49-4294-4gmw"
},
{
"source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"url": "https://symfony.com/cve-2026-133772"
}
],
"sourceIdentifier": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"vulnStatus": "Awaiting Analysis",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-863"
}
],
"source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"type": "Secondary"
}
]
}
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…