CVE Explorer
CVE-2026-46638
Twig is a template language for PHP. Prior to 3.26.0, {% sandbox %}{% include %} can include a template that was previously loaded outside the sandbox without re-invoking checkSecurity(), allowing the cached template to use tags, filters, and functions that should have been denied by SecurityPolicy::checkSecurity(). This issue is fixed in version 3.26.0.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"Twig","vendor":"twigphp","versions":[{"status":"affected","version":"< 3.26.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:9c457bbeec37a543c4cb26c3ae4ee3b29f08923e30144160a999888cb6ebff39 · sha256:5a1ffe522b448659… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"LOW"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:9c457bbeec37a543c4cb26c3ae4ee3b29f08923e30144160a999888cb6ebff39 · sha256:5a1ffe522b448659… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-693","description":"CWE-693: Protection Mechanism Failure","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9c457bbeec37a543c4cb26c3ae4ee3b29f08923e30144160a999888cb6ebff39 · sha256:5a1ffe522b448659… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/twigphp/Twig/commit/819c6a89fe0f261b8555c4f4d5e27d31984223ea","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/commit/819c6a89fe0f261b8555c4f4d5e27d31984223ea"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9c457bbeec37a543c4cb26c3ae4ee3b29f08923e30144160a999888cb6ebff39 · sha256:5a1ffe522b448659… · /containers/cna/references/1
{"name":"https://github.com/twigphp/Twig/releases/tag/v3.26.0","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/releases/tag/v3.26.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9c457bbeec37a543c4cb26c3ae4ee3b29f08923e30144160a999888cb6ebff39 · sha256:5a1ffe522b448659… · /containers/cna/references/2
{"name":"https://github.com/twigphp/Twig/security/advisories/GHSA-7fxw-r6jv-74c8","tags":["x_refsource_CONFIRM"],"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-7fxw-r6jv-74c8"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9c457bbeec37a543c4cb26c3ae4ee3b29f08923e30144160a999888cb6ebff39 · sha256:5a1ffe522b448659… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.