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

[Catalogo CVE]

Gravità
High · CVSS 8.7CVSS: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.

DistributionPackageReleaseVersionStatus
Debianphp-twigsid3.28.0-1fixed
Debianphp-twigforky3.28.0-1fixed
Debianphp-twigtrixie3.27.0-0+deb13u1fixed
Debianphp-twigtrixie-security3.27.0-0+deb13u1fixed
Debianphp-twigbookworm3.5.1-1+deb12u3not affected
Debianphp-twigbookworm-security3.5.1-1+deb12u3not affected
CpetwigNot reportedNot reportedunknown
CpetwigNot reported3.26.0fixed
CpetwigNot reported3.26.0fixed
Ubuntuphp-twigpro3.20.0-2ubuntu1vulnerable
Ubuntuphp-twigpro3.23.0-2build5vulnerable
Ubuntuphp-twigpro3.23.0-2build7vulnerable
Ubuntuphp-twigpro3.23.0-2ubuntu0.1~esm1fixed
Ubuntuphp-twig25.103.20.0-2ubuntu1vulnerable
Ubuntuphp-twigpro3.20.0-2ubuntu1vulnerable
Ubuntuphp-twigpro3.23.0-2build5vulnerable
Ubuntuphp-twigpro3.23.0-2build7vulnerable
Ubuntuphp-twigpro3.23.0-2ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianphp-twigsourcesid3.26.0-1not yet assignedNot reportedNot reported
Debianphp-twigsourceforky3.26.0-1not yet assignedNot reportedNot reported
Debianphp-twigsourcetrixie3.27.0-0+deb13u1not yet assignedNot reportedNot reported
Debianphp-twigsourcebookwormNot affectedunimportantNot reportedNot reported
CpetwigcpeNot reported3.26.0Not reportedNot reportedNot reported
CpetwigcpeNot reported3.26.0Not reportedNVD-CVE-2026-24425Not reported
Ubuntuphp-twigdebpro3.23.0-2ubuntu0.1~esm1Not reportedUSN-8408-1Not reported
Ubuntuphp-twigdebpro3.23.0-2ubuntu0.1~esm1Not reportedUBUNTU-CVE-2026-24425Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [php-twig]Non interessata
    Dettagli (4)
    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

  • [php-twig-cache-extra]Non interessata

    Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

  • [php-twig-cssinliner-extra]Non interessata

    Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

  • [php-twig-doc]Non interessata

    Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

  • [php-twig-extra-bundle]Non interessata

    Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

  • [php-twig-html-extra]Non interessata

    Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

  • [php-twig-inky-extra]Non interessata

    Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

  • [php-twig-intl-extra]Non interessata

    Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

  • [php-twig-markdown-extra]Non interessata

    Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

  • [php-twig-string-extra]Non interessata

    Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

    • 3.5.1-1+deb12u3 · all · bookworm-security

      Non interessata

      nvd · php-twig · debian · bookworm

[Debian 13 (Trixie)]

  • [php-twig]Corretta
    Dettagli (4)
    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

  • Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

  • Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

  • [php-twig-doc]Corretta

    Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

  • Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

  • Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

  • Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

  • Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

  • Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

  • Pacchetto sorgente: [php-twig]

    Dettagli (4)
    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

    • 3.27.0-0+deb13u1 · all · trixie-security

      Corretta · Corretta: 3.27.0-0+deb13u1

      nvd · php-twig · debian · 13

Osservato:

Riferimenti