Answer in brief
CVE-2026-24425 records a High severity (CVSS 8.7) vulnerability in Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface. The current sources do not mark it as known exploited. The current feed maps twig/twig (composer), twig/twig (composer), twigphp/Twig (generic). Check affected ranges and fixed versions before updating.
Analysis pending evidence review
HOL Guard separates source facts from reviewed analysis. See the methodology.
CVSS is 8.7. The current sources do not mark it as known exploited. Treat this as a source-backed prioritization signal, not a statement about your environment.
Analysis status
Analysis pending evidence review
Factual feed record only; HOL analysis is not approved for indexing. Read the methodology.
The current feed maps twig/twig (composer), twig/twig (composer), twigphp/Twig (generic). Check affected ranges and fixed versions before updating.
| Package | Affected range | Fixed version |
|---|---|---|
| twig/twigcomposer | >=2.16.0,<=2.16.1 | Not reported |
| twig/twigcomposer | >=3.9.0,<3.26.0 | 3.26.0 |
| twigphp/Twiggeneric | * | Not reported |
Published upstream
May 20, 2026
Evidence: source:cvelist:source_dates:source-dates:recordSource modified
Oct 8, 2026
Evidence: source:cvelist:source_dates:source-dates:recordFirst seen by HOL
Jun 11, 2026
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.
Quoted source text, attributed separately from HOL analysis.