Skip to content
OpenAdvisories
Unscored CVE-2018-12882 EUVD-2018-4835GHSA-p666-3cc6-g2c6

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 Jun 26, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS php7.2 7.2.7-0ubuntu0.18.04.2 USN-3702-2, USN-3702-1
ReleasePackageFixed inAdvisory
SLES 15 SP1 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLES 15 php7 7.2.5-4.3.1 SUSE-SU-2022:4067-1, SUSE-SU-2018:1936-2, SUSE-SU-2018:1936-1
SLES 12 SP3 php5 5.5.14-109.38.1 SUSE-SU-2018:2682-1
SLES 12 SP3 php7 7.0.7-50.41.1 SUSE-SU-2018:1886-1
SLES 12 php5 5.5.14-109.38.1 SUSE-SU-2018:2682-1
SLES 12 php7 7.0.7-50.41.1 SUSE-SU-2018:1886-1
SLES 11 SP4 php53 5.3.17-112.28.1 SUSE-SU-2018:2044-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLES for SAP 15 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLES for SAP 11 SP4 php53 5.3.17-112.28.1 SUSE-SU-2018:2044-1
SLE HPC 15 SP1 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLE HPC 15 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SUSE Enterprise Storage 6 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php7 7.4.24-1.1 openSUSE-SU-2024:11167-1
openSUSE Tumbleweed php8 8.0.11-1.1 openSUSE-SU-2024:11169-1
openSUSE Leap 15.4 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
ReleasePackageFixed inAdvisory
Alpine v3.15 php7 7.2.8-r0 —
Alpine v3.14 php7 7.2.8-r0 —
Alpine v3.13 php7 7.2.8-r0 —
Alpine v3.12 php7 7.2.8-r0 —
Alpine v3.11 php7 7.2.8-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.10 php7 7.2.8-r0 —
Alpine v3.9 php7 7.2.8-r0 —
Alpine v3.8 php7 7.2.8-r0 —

Advisories 13

References