cve.bz

CVE-2018-12882 Use After Free

9.8 criticalEPSS 6.5%Fix available

Critical (9.8). EPSS 6.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
6.5% (unchanged from 6.5% a week ago; 6.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-12882 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-12882?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-12882?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-12882 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
php:phpfrom 7.2.0 through 7.2.7
canonical:ubuntu_linux18.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu18.04:LTSphp7.27.2.7-0ubuntu0.18.04.2UBUNTU-CVE-2018-12882 USN-3702-1 USN-3702-2
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morephp77.2.34-150000.4.103.1SUSE-SU-2022:4067-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP3php55.5.14-109.38.1SUSE-SU-2018:2682-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP3php77.0.7-50.41.1SUSE-SU-2018:1886-1
SUSELinux Enterprise Module for Web and Scripting 15php77.2.5-4.3.1SUSE-SU-2018:1936-1 SUSE-SU-2018:1936-2
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4php535.3.17-112.28.1SUSE-SU-2018:2044-1
openSUSELeap 15.4php77.2.34-150000.4.103.1SUSE-SU-2022:4067-1
openSUSETumbleweedphp77.4.24-1.1openSUSE-SU-2024:11167-1
openSUSETumbleweedphp88.0.11-1.1openSUSE-SU-2024:11169-1
Alpinev3.8, v3.9, v3.10 and 5 morephp77.2.8-r0ALPINE-CVE-2018-12882

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5phpNot affected
Red Hat Enterprise Linux 5php53Not affected
Red Hat Enterprise Linux 6phpNot affected
Red Hat Enterprise Linux 7phpNot affected
Red Hat Enterprise Linux 8phpNot affected
Red Hat Software Collectionsrh-php70-phpNot affected
Red Hat Software Collectionsrh-php71-phpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-12882.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-027-02Festo Didactic SE MES PC2024-02-27Commercial Facilities, Communications, Critical Manufacturing, EnergyFesto Didactic SE MES PC shipped with Windows 10none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON