Vulnerability database / CVE-2018-12882
CVE-2018-12882
CRITICAL 9.8 CVSS 3.0 exif_read_from_impl in ext/exif/exif.c in PHP 7.2.x through 7.2.7 allows attackers to trigger a use-after-free (in exif_read_from_file) because it closes a stream that it is not responsible for closing. The vulnerable code is reachable through the PHP exif_read_data function.
Published 26 Jun 2018
Last modified 17 Jun 2026 Assigned by cve@mitre.org NVD status Modified Weakness
CWE-416 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.0
CRITICAL 9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 2.0
HIGH 7.5
AV:N/AC:L/Au:N/C:P/I:P/A:P
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.2.0, <= 7.2.7
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
= 18.04
NVD
netapp
storage_automation_storecpe:2.3:a:netapp:storage_automation_store:-:*:*:*:*:*:*:*
(no version)
References
History
25 Nov 2026 20:21 UTC · NVD: first stored (published 26 Jun 2018)