Description
An issue was discovered in PHP before 5.6.36, 7.0.x before 7.0.30, 7.1.x before 7.1.17, and 7.2.x before 7.2.5. exif_read_data in ext/exif/exif.c has an out-of-bounds read for crafted JPEG data because exif_iif_add_value mishandles the case of a MakerNote that lacks a final '\0' character.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | php7.0 | 7.0.30-0+deb9u1 | DSA-4240-1 |
| Debian 8 | php5 | 5.6.36+dfsg-0+deb8u1 | DLA-1397-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | php7.2 | 7.2.5-0ubuntu0.18.04.1 | USN-3646-1 |
| Ubuntu 16.04 LTS | php7.0 | 7.0.30-0ubuntu0.16.04.1 | USN-3646-1 |
| Ubuntu 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.25 | USN-3646-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | rh-php71-php +27 | 7.1.30-1.el7 | RHSA-2019:2519 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.15 | php7 | 7.2.5-r0 | — |
| Alpine v3.14 | php7 | 7.2.5-r0 | — |
| Alpine v3.13 | php7 | 7.2.5-r0 | — |
| Alpine v3.12 | php7 | 7.2.5-r0 | — |
| Alpine v3.11 | php7 | 7.2.5-r0 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.10 | php7 | 7.2.5-r0 | — |
| Alpine v3.9 | php7 | 7.2.5-r0 | — |
| Alpine v3.8 | php7 | 7.2.5-r0 | — |
| Alpine v3.7 | php7 | 7.1.17-r0 | — |
Advisories 4
- RHSA-2019:2519 Red Hat Security Advisory: rh-php71-php security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-3646-1 php5, php7.0, php7.1, php7.2 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4240-1 php7.0 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1397-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- 104019 vdb-entry
- 1040807 vdb-entry
- https://bugs.php.net/bug.php?id=76130
- https://www.synology.com/support/security/Synology_SA_18_20
- DSA-4240 vendor-advisory
- https://www.tenable.com/security/tns-2018-12
- USN-3646-1 vendor-advisory
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- GLSA-201812-01 vendor-advisory
- https://security.netapp.com/advisory/ntap-20180607-0003/
- [debian-lts-announce] 20180626 [SECURITY] [DLA 1397-1] php5 security update mailing-list
- RHSA-2019:2519 vendor-advisory