
Catalogo CVE
CVE-2026-24425
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
- Gravità
- High · CVSS 8.7
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.76% · Oct 22, 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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | php-twig | sid | 3.28.0-1 | fixed |
| Debian | php-twig | forky | 3.28.0-1 | fixed |
| Debian | php-twig | trixie | 3.27.0-0+deb13u1 | fixed |
| Debian | php-twig | trixie-security | 3.27.0-0+deb13u1 | fixed |
| Debian | php-twig | bookworm | 3.5.1-1+deb12u3 | not affected |
| Debian | php-twig | bookworm-security | 3.5.1-1+deb12u3 | not affected |
| Cpe | twig | Not reported | Not reported | unknown |
| Cpe | twig | Not reported | 3.26.0 | fixed |
| Cpe | twig | Not reported | 3.26.0 | fixed |
| Ubuntu | php-twig | pro | 3.20.0-2ubuntu1 | vulnerable |
| Ubuntu | php-twig | pro | 3.23.0-2build5 | vulnerable |
| Ubuntu | php-twig | pro | 3.23.0-2build7 | vulnerable |
| Ubuntu | php-twig | pro | 3.23.0-2ubuntu0.1~esm1 | fixed |
| Ubuntu | php-twig | 25.10 | 3.20.0-2ubuntu1 | vulnerable |
| Ubuntu | php-twig | pro | 3.20.0-2ubuntu1 | vulnerable |
| Ubuntu | php-twig | pro | 3.23.0-2build5 | vulnerable |
| Ubuntu | php-twig | pro | 3.23.0-2build7 | vulnerable |
| Ubuntu | php-twig | pro | 3.23.0-2ubuntu0.1~esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | php-twig | source | sid | 3.26.0-1 | not yet assigned | Not reported | Not reported |
| Debian | php-twig | source | forky | 3.26.0-1 | not yet assigned | Not reported | Not reported |
| Debian | php-twig | source | trixie | 3.27.0-0+deb13u1 | not yet assigned | Not reported | Not reported |
| Debian | php-twig | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Cpe | twig | cpe | Not reported | 3.26.0 | Not reported | Not reported | Not reported |
| Cpe | twig | cpe | Not reported | 3.26.0 | Not reported | NVD-CVE-2026-24425 | Not reported |
| Ubuntu | php-twig | deb | pro | 3.23.0-2ubuntu0.1~esm1 | Not reported | USN-8408-1 | Not reported |
| Ubuntu | php-twig | deb | pro | 3.23.0-2ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2026-24425 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [php-twig]Non interessata
Dettagli (4)
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
- [php-twig-cache-extra]Non interessata
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
- [php-twig-cssinliner-extra]Non interessata
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
- [php-twig-doc]Non interessata
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
- [php-twig-extra-bundle]Non interessata
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
- [php-twig-html-extra]Non interessata
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
- [php-twig-inky-extra]Non interessata
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
- [php-twig-intl-extra]Non interessata
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
- [php-twig-markdown-extra]Non interessata
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
- [php-twig-string-extra]Non interessata
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookwormNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
3.5.1-1+deb12u3· all · bookworm-securityNon interessata
nvd · php-twig · debian · bookworm
[Debian 13 (Trixie)]
- [php-twig]Corretta
Dettagli (4)
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
- [php-twig-cache-extra]Corretta
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
- [php-twig-cssinliner-extra]Corretta
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
- [php-twig-doc]Corretta
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
- [php-twig-extra-bundle]Corretta
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
- [php-twig-html-extra]Corretta
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
- [php-twig-inky-extra]Corretta
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
- [php-twig-intl-extra]Corretta
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
- [php-twig-markdown-extra]Corretta
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
- [php-twig-string-extra]Corretta
Pacchetto sorgente: [php-twig]
Dettagli (4)
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixieCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
3.27.0-0+deb13u1· all · trixie-securityCorretta · Corretta:
3.27.0-0+deb13u1nvd · php-twig · debian · 13
Osservato:
Riferimenti
- [https://nvd.nist.gov/vuln/detail/CVE-2026-24425]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-24425]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-24425]
- [https://osv.dev/vulnerability/USN-8408-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-24425]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]