1. Archivio CVE
  2. 2021
  3. CVE-2021-40848

CVE-2021-40848

7.8 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 7.8 – Alta

Descrizione

In Mahara before 20.04.5, 20.10.3, 21.04.2, and 21.10.0, exported CSV files could contain characters that a spreadsheet program could interpret as a command, leading to execution of a malicious string locally on a device, aka CSV injection.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
mahara mahara < 20.04.5 –
mahara mahara >= 20.10.0 < 20.10.3 –
mahara mahara >= 21.04.0 < 21.04.2 –
mahara mahara 21.10.0 rc1 –
mahara mahara 21.10.0 rc2 –
Tutte le 109 vulnerabilità di Mahara

Tipo di vulnerabilità

CWE-1236 Improper Neutralization of Formula Elements in a CSV File

The product saves user-provided information into a Comma-Separated Value (CSV) file, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as a command when the file is opened by a spreadsheet product.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere i dati dell’applicazione, Eseguire codice o comandi non autorizzati

Come si previene

Sviluppo When generating CSV output, ensure that formula-sensitive metacharacters are effectively escaped or removed from all data before storage in the resultant CSV. Risky characters include '=' (equal), '+' (plus), '-' (minus), and '@' (at).
Sviluppo If a field starts with a formula character, prepend it with a ' (single apostrophe), which prevents Excel from executing the formula.
Architettura e progettazione Certain implementations of spreadsheet software might disallow formulas from executing if the file is untrusted, or if the file is not authored by the current user.

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

Tutte le 334 CVE di tipo CWE-1236, con andamento e prevenzione

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