1. Archivio CVE
  2. 2019
  3. CVE-2019-10216

CVE-2019-10216

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 ghostscript before version 9.50, the .buildfont1 procedure did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. An attacker could abuse this flaw by creating a specially crafted PostScript file that could escalate privileges and access files outside of restricted areas.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
artifex ghostscript < 9.50 –
redhat 3scale api management 2.6 –
redhat enterprise linux 5.0 –
redhat enterprise linux 6.0 –
redhat enterprise linux 8.0 –
redhat enterprise linux desktop 7.0 –
redhat enterprise linux server 7.0 –
redhat enterprise linux server aus 7.7 –
redhat enterprise linux server eus 7.7 –
redhat enterprise linux server tus 7.7 –
redhat enterprise linux workstation 7.0 –
Tutte le 132 vulnerabilità di Artifex Ghostscript

Tipo di vulnerabilità

CWE-648 Incorrect Use of Privileged APIs

The product does not conform to the API requirements for a function call that requires extra privileges. This could allow attackers to gain privileges by causing the function to be called incorrectly.

Impatto sui sistemi

AmbitoImpatto
Controllo degli accessi Ottenere privilegi o assumere un’altra identità
Riservatezza Leggere i dati dell’applicazione
Integrità, Riservatezza, Disponibilità Eseguire codice o comandi non autorizzati

Come si previene

Sviluppo Before calling privileged APIs, always ensure that the assumptions made by the privileged code hold true prior to making the call.
Architettura e progettazione Know architecture and implementation weaknesses of the privileged APIs and make sure to account for these weaknesses before calling the privileged APIs to ensure that they can be called safely.
Sviluppo If privileged APIs make certain assumptions about data, context or state validity that are passed by the caller, the calling code must ensure that these assumptions have been validated prior to making the call.
Sviluppo If privileged APIs do not shed their privilege prior to returning to the calling code, then calling code needs to shed these privileges immediately and safely right after the call to the privileged APIs. In particular, the calling code needs to ensure that a privileged thread of execution will never be returned to the user or made available to user-controlled processes.
Sviluppo Only call privileged APIs from safe, consistent and expected state.
Sviluppo Ensure that a failure or an error will not leave a system in a state where privileges are not properly shed and privilege escalation is possible (i.e. fail securely with regards to handling of privileges).

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

Tutte le 51 CVE di tipo CWE-648, con andamento e prevenzione

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