
Catalogo CVE
CVE-2026-46640
Twig is a template language for PHP. From 3.15.0 until 3.26.0, _self.(<string>) and import-alias dynamic attribute syntax can concatenate an attacker-controlled string into a MacroReferenceExpression
- Gravità
- High · CVSS 8.7
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.64% · Oct 22, 2026
Twig is a template language for PHP. From 3.15.0 until 3.26.0, _self.(<string>) and import-alias dynamic attribute syntax can concatenate an attacker-controlled string into a MacroReferenceExpression name without identifier validation, causing raw PHP to be emitted into the generated template source and executed at template-load time. This issue is fixed in version 3.26.0.
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 |
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 |
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: