CVE-2026-48805

Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`

State
Published
Severity
5.3 Medium
Published
Jul 14, 2026
Updated
Jul 16, 2026
Reserved
May 22, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.05.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-693 Protection Mechanism Failure

Affected Products

ProductVersions
Twigtwigphp
  • < 3.27.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.