CVE Explorer
CVE-2026-48805
Twig is a template language for PHP. Prior to 3.27.0, deprecated internal wrappers in src/Resources/core.php do not forward the current sandbox state to CoreExtension::checkArrow(), arraySome(), and arrayEvery(), allowing legacy calls such as twig_array_some(), twig_array_every(), and twig_check_arrow_in_sandbox() to bypass sandbox callable restrictions. This issue is fixed in version 3.27.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.27.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:21a17982846afe96cf7c22d1d5149eda117cc0b43ed7951e6a8c7734741ab4bb · sha256:a9d9ed7d399ef65f… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.3,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:21a17982846afe96cf7c22d1d5149eda117cc0b43ed7951e6a8c7734741ab4bb · sha256:a9d9ed7d399ef65f… · /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:21a17982846afe96cf7c22d1d5149eda117cc0b43ed7951e6a8c7734741ab4bb · sha256:a9d9ed7d399ef65f… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/twigphp/Twig/commit/e235cae3a1d1e23edc24df4d675f18108c6b167b","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/commit/e235cae3a1d1e23edc24df4d675f18108c6b167b"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:21a17982846afe96cf7c22d1d5149eda117cc0b43ed7951e6a8c7734741ab4bb · sha256:a9d9ed7d399ef65f… · /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:21a17982846afe96cf7c22d1d5149eda117cc0b43ed7951e6a8c7734741ab4bb · sha256:a9d9ed7d399ef65f… · /containers/cna/references/2
{"name":"https://github.com/twigphp/Twig/security/advisories/GHSA-p42q-9prx-q5wq","tags":["x_refsource_CONFIRM"],"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-p42q-9prx-q5wq"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:21a17982846afe96cf7c22d1d5149eda117cc0b43ed7951e6a8c7734741ab4bb · sha256:a9d9ed7d399ef65f… · /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.