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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | php7.2 | 7.2.7-0ubuntu0.18.04.2 | USN-3702-2, USN-3702-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- USN-3702-2 php7.2 vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-3702-1 php7.2 vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- SUSE-SU-2022:4067-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1936-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2044-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11167-1 php7-7.4.24-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1886-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11169-1 php8-8.0.11-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2682-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1936-2 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- FSA-202302 Festo: Several vulnerabilities in FactoryViews CERT@VDE · Feb 2, 2026
- ICSA-26-027-02 Festo Didactic SE MES PC CISA ICS & IT advisories · Jan 27, 2026
- FSA-202402 Several Vulnerabilities in MES PC (Windows 10) CERT@VDE · Dec 8, 2025
References
- 104551 vdb-entry
- USN-3702-2 vendor-advisory
- https://bugs.php.net/bug.php?id=76409
- USN-3702-1 vendor-advisory
- https://security.netapp.com/advisory/ntap-20181109-0001/