CVE-2018-12882 in the critical feed json
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) bec…
published 2018-06-26 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-4835
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.5%
- EPSS 6.5% chance of exploitation in 30 days, percentile 93%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- php7.2 Ubuntu 18.04 LTS 7.2.7-0ubuntu0.18.04.2
ubuntu advisories UBUNTU-CVE-2018-12882
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- php7 SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +8 more 7.2.34-150000.4.103.1
- php5 SLE Software Development Kit 12 SP3, SLE Module for Web and Scripting 12 5.5.14-109.38.1
- php53 SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 5.3.17-112.28.1
- php7 SLE Module for Web and Scripting 15 7.2.5-4.3.1
- php7 SLE Software Development Kit 12 SP3, SLE Module for Web and Scripting 12 7.0.7-50.41.1
suse advisories SUSE-SU-2022:4067-1SUSE-SU-2018:2682-1SUSE-SU-2018:2044-1SUSE-SU-2018:1936-1SUSE-SU-2018:1936-2SUSE-SU-2018:1886-1
- php7 openSUSE Tumbleweed 7.4.24-1.1
- php8 openSUSE Tumbleweed 8.0.11-1.1
opensuse advisories openSUSE-SU-2024:11167-1openSUSE-SU-2024:11169-1
- php7 Alpine 3.15, Alpine 3.14, Alpine 3.13 +5 more 7.2.8-r0
alpine advisories ALPINE-CVE-2018-12882
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- bugs.php.net/bug.php?id=76409 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-12882 updated cvss 6.3
php: Use-after-free reachable via the exif.c:exif_read_from_impl() function
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 more Red Hat Software Collections rh-php70-php, rh-php71-php, rh-php70-php-gd, rh-php71-php-gd, rh-php70-php-cli, rh-php70-php-dba, +52 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-027-02 updated cvss 9.8
Festo Didactic SE MES PC
-
Festo Didactic SE MES PC shipped_with_Windows_10affected: vendor fix
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
Exploit prediction
6.48% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
bugs.php.net
/bug.php?id=76409
issue-tracking, patch, vendor-advisory
-
usn.ubuntu.com
/3702-2/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3702-1/
vendor-advisory, third-party-advisory
-
securityfocus.com
/bid/104551
vdb-entry, third-party-advisory
-
security.netapp.com
/advisory/ntap-20181109-0001/
third-party-advisory
Sources
- CVE List CVE-2018-12882
- NVD CVE-2018-12882
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.