CVE Explorer
CVE-2026-46634
Twig is a template language for PHP. From 3.9.0 until 3.26.0, template_from_string() compiles an inner template under a synthesized __string_template__<hash> name that can fall outside a SourcePolicyInterface sandbox decision, allowing a sandboxed template that can call template_from_string and include to render an inner template without security policy enforcement. 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.9.0, < 3.26.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:8a2ab9b586026cda0560f63d6f1df37fb763d4fe092478f936af2af29dff4052 · sha256:f7343cf93e24805b… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":7.7,"baseSeverity":"HIGH","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:H/VA:H/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:8a2ab9b586026cda0560f63d6f1df37fb763d4fe092478f936af2af29dff4052 · sha256:f7343cf93e24805b… · /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:8a2ab9b586026cda0560f63d6f1df37fb763d4fe092478f936af2af29dff4052 · sha256:f7343cf93e24805b… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/twigphp/Twig/commit/1cde8f2b62463f85d47995fc25f8241cb409d915","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/commit/1cde8f2b62463f85d47995fc25f8241cb409d915"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:8a2ab9b586026cda0560f63d6f1df37fb763d4fe092478f936af2af29dff4052 · sha256:f7343cf93e24805b… · /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:8a2ab9b586026cda0560f63d6f1df37fb763d4fe092478f936af2af29dff4052 · sha256:f7343cf93e24805b… · /containers/cna/references/2
{"name":"https://github.com/twigphp/Twig/security/advisories/GHSA-24x9-r6q4-q93w","tags":["x_refsource_CONFIRM"],"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-24x9-r6q4-q93w"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:8a2ab9b586026cda0560f63d6f1df37fb763d4fe092478f936af2af29dff4052 · sha256:f7343cf93e24805b… · /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.