1. Archivio CVE
  2. 2016
  3. CVE-2016-5768

CVE-2016-5768

9.8 Gravità critica CVSS v3.0 · fonte NVD CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critica

Descrizione

Double free vulnerability in the _php_mb_regex_ereg_replace_exec function in php_mbregex.c in the mbstring extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by leveraging a callback exception.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
php php <= 5.5.36 –
php php 5.6.0 alpha1 –
php php 5.6.0 alpha2 –
php php 5.6.0 alpha3 –
php php 5.6.0 alpha4 –
php php 5.6.0 alpha5 –
php php 5.6.0 beta1 –
php php 5.6.0 beta2 –
php php 5.6.0 beta3 –
php php 5.6.0 beta4 –
php php 5.6.1 –
php php 5.6.2 –
php php 5.6.3 –
php php 5.6.4 –
php php 5.6.5 –
php php 5.6.6 –
php php 5.6.7 –
php php 5.6.8 –
php php 5.6.9 –
php php 5.6.10 –
php php 5.6.11 –
php php 5.6.12 –
php php 5.6.13 –
php php 5.6.14 –
php php 5.6.15 –
php php 5.6.16 –
php php 5.6.17 –
php php 5.6.18 –
php php 5.6.19 –
php php 5.6.20 –
php php 5.6.21 –
php php 5.6.22 –
php php 7.0.0 –
php php 7.0.1 –
php php 7.0.2 –
php php 7.0.3 –
php php 7.0.4 –
php php 7.0.5 –
php php 7.0.6 –
php php 7.0.7 –
Tutte le 757 vulnerabilità di Php

Tipo di vulnerabilità

CWE-415 Doppia liberazione della memoria (double free)

Il prodotto chiama due volte free() sullo stesso indirizzo di memoria.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Disponibilità Modificare la memoria, Eseguire codice o comandi non autorizzati

Come si previene

Architettura e progettazione Choose a language that provides automatic memory management.
Sviluppo Ensure that each allocation is freed only once. After freeing a chunk, set the pointer to NULL to ensure the pointer cannot be freed again. In complicated error conditions, be sure that clean-up routines respect the state of allocation properly. If the language is object oriented, ensure that object destructors delete each chunk of memory only once.
Sviluppo Use a static analysis tool to find double free instances.

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

Tutte le 969 CVE di tipo CWE-415, con andamento e prevenzione

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