1. Archivio CVE
  2. 2026
  3. CVE-2026-28697

CVE-2026-28697

9.1 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H 9.1 – Critica

Descrizione

Craft is a content management system (CMS). Prior to 4.17.0-beta.1 and 5.9.0-beta.1, an authenticated administrator can achieve Remote Code Execution (RCE) by injecting a Server-Side Template Injection (SSTI) payload into Twig template fields (e.g., Email Templates). By calling the craft.app.fs.write() method, an attacker can write a malicious PHP script to a web-accessible directory and subsequently access it via the browser to execute arbitrary system commands. This vulnerability is fixed in 4.17.0-beta.1 and 5.9.0-beta.1.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
craftcms craft cms > 4.0.0 < 4.17.0 –
craftcms craft cms > 5.0.0 < 5.9.0 –
craftcms craft cms 4.0.0 –
craftcms craft cms 4.0.0 rc1 –
craftcms craft cms 4.0.0 rc2 –
craftcms craft cms 4.0.0 rc3 –
craftcms craft cms 5.0.0 –
craftcms craft cms 5.0.0 rc1 –
Tutte le 157 vulnerabilità di Craftcms Craft Cms

Tipo di vulnerabilità

CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine

The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Impatto sui sistemi

AmbitoImpatto
Integrità Eseguire codice o comandi non autorizzati

Come si previene

Architettura e progettazione Choose a template engine that offers a sandbox or restricted mode, or at least limits the power of any available expressions, function calls, or commands.
Sviluppo Use the template engine's sandbox or restricted mode, if available.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 188 CVE di tipo CWE-1336, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org