CVE-2026-48805: Vulnerability in Symfony Twig

Critical. 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.

Packagist, CWE-693

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-p42q-9prx-q5wq
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-693
Published
30 Jun 2026
Last change
24 Oct 2026
Ecosystem
Packagist

Affected products

Affected versions and the first fixed release

  • Symfony Twig Before 3.27.0. Fixed in 3.27.0

Affected packages

Vulnerable version ranges and fixed releases

  • twig/twig Packagist, Affected through 3.26.0. Fixed in 3.27.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related