CVE Explorer
CVE-2026-49981
Twig is a template language for PHP. Prior to 3.27.0, the per-template filter, tag, and function allow-list verdict is computed when a Template instance is constructed and can remain cached after sandbox state changes between renders, allowing a later sandboxed render to reuse a template that was originally checked with a different or empty policy. This issue is fixed in version 3.27.0.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-693","description":"CWE-693: Protection Mechanism Failure","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:bdac4038deaf4586f0e1c48325e11f1704cc988eb7c9befeeb12686cff9ae2f7 · sha256:f8e48e9a367933ce… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-863","description":"CWE-863: Incorrect Authorization","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:bdac4038deaf4586f0e1c48325e11f1704cc988eb7c9befeeb12686cff9ae2f7 · sha256:f8e48e9a367933ce… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"product":"Twig","vendor":"twigphp","versions":[{"status":"affected","version":"< 3.27.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:bdac4038deaf4586f0e1c48325e11f1704cc988eb7c9befeeb12686cff9ae2f7 · sha256:f8e48e9a367933ce… · /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:bdac4038deaf4586f0e1c48325e11f1704cc988eb7c9befeeb12686cff9ae2f7 · sha256:f8e48e9a367933ce… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-693","description":"CWE-693: Protection Mechanism Failure","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:bdac4038deaf4586f0e1c48325e11f1704cc988eb7c9befeeb12686cff9ae2f7 · sha256:f8e48e9a367933ce… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-863","description":"CWE-863: Incorrect Authorization","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:bdac4038deaf4586f0e1c48325e11f1704cc988eb7c9befeeb12686cff9ae2f7 · sha256:f8e48e9a367933ce… · /containers/cna/problemTypes/1/descriptions/0
Source references
3 source assertions{"name":"https://github.com/twigphp/Twig/commit/23eb6eb1267cb0d303b91eb5cff9b0c559c538a4","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/commit/23eb6eb1267cb0d303b91eb5cff9b0c559c538a4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:bdac4038deaf4586f0e1c48325e11f1704cc988eb7c9befeeb12686cff9ae2f7 · sha256:f8e48e9a367933ce… · /containers/cna/references/1
{"name":"https://github.com/twigphp/Twig/releases/tag/v3.27.0","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/releases/tag/v3.27.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:bdac4038deaf4586f0e1c48325e11f1704cc988eb7c9befeeb12686cff9ae2f7 · sha256:f8e48e9a367933ce… · /containers/cna/references/2
{"name":"https://github.com/twigphp/Twig/security/advisories/GHSA-529h-vh3j-85hq","tags":["x_refsource_CONFIRM"],"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-529h-vh3j-85hq"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:bdac4038deaf4586f0e1c48325e11f1704cc988eb7c9befeeb12686cff9ae2f7 · sha256:f8e48e9a367933ce… · /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.