CVE-2026-24425
Twig: Possible sandbox bypass when using a source policy
8.8
HIGH
CVSS 3.1
EPSS 0.74%
Description
Twig versions 2.16.x and 3.9.0 through 3.25.x contain a sandbox bypass vulnerability when using a SourcePolicyInterface that allows attackers with template rendering capabilities to pass arbitrary PHP callables to sort, filter, map, and reduce filters. Attackers can exploit the runtime check that fails to use the current template source to bypass sandbox restrictions and execute arbitrary code when the sandbox is enabled through a source policy rather than globally.
How to fix CVE-2026-24425
To remediate CVE-2026-24425, upgrade the affected package to a fixed version below.
- —upgrade to 3.27.0-0+deb13u1 or later
- —no fix listed
Is CVE-2026-24425 being exploited?
Low — EPSS is 0.7%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 3.27.0-0+deb13u1
- >= 2.16.0, <= 2.16.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |