CVE-2018-12882

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: 2018-06-25 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2018-12882 is rated High Risk (72/100): CVSS Critical severity, with high exploitation likelihood (EPSS 6.80%, 93th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2018-12882

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-27 6.62% 6.80% +0.18%
2 2026-06-15 5.20% 6.62% +1.42%
3 2026-05-18 5.20%

Full EPSS history (50 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2018-12882

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.8 3.0 CRITICAL
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]
7.5 2.0 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
10.0 6.4 [email protected]

Weakness enumeration for CVE-2018-12882

OS Trackers for CVE-2018-12882

vendor priority summary link
alpine critical CVE-2018-12882: 1 source package rows (php7); 1 state rows across 1 repos (edge-community); fixed 1, open 0. https://security.alpinelinux.org/vuln/CVE-2018-12882
redhat medium https://access.redhat.com/security/cve/CVE-2018-12882
suse medium CVE-2018-12882 severity moderate: SUSE including 855 source package names (apache2-mod_php5-5.2.14-0.7.30.111.26.1, apache2-mod_php5-5.5.14-109.38.1, …), 1866 product×package rows across 48 product lines (SUSE CaaS Platform 4.0, SUSE Enterprise Storage 6, … (48 product lines)): Fixed 1412, Known Not Affected 454. https://www.suse.com/security/cve/CVE-2018-12882/
ubuntu medium CVE-2018-12882 medium priority: Ubuntu including 4 source packages (php5, php7.0, php7.1, php7.2), 20 status rows across 5 suites (artful, bionic, trusty, upstream, xenial): DNE 12, needs-triage 4, not-affected 3, released 1. https://ubuntu.com/security/CVE-2018-12882

Affected software / configurations for CVE-2018-12882

Vendor Product Version Raw CPE
php php >= 7.2.0, <= 7.2.7 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
canonical ubuntu_linux 18.04 cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
netapp storage_automation_store cpe:2.3:a:netapp:storage_automation_store:-:*:*:*:*:*:*:*

References for CVE-2018-12882

URL Tags
http://www.securityfocus.com/bid/104551 Third Party Advisory VDB Entry
https://bugs.php.net/bug.php?id=76409 Issue Tracking Patch Vendor Advisory
https://security.netapp.com/advisory/ntap-20181109-0001/ Third Party Advisory
https://usn.ubuntu.com/3702-1/ Third Party Advisory
https://usn.ubuntu.com/3702-2/ Third Party Advisory
cvelogic Threat Intelligence