Description
Zend/zend_hash.c in PHP before 7.0.15 and 7.1.x before 7.1.1 mishandles certain cases that require large array allocations, which allows remote attackers to execute arbitrary code or cause a denial of service (integer overflow, uninitialized memory access, and use of arbitrary destructor function pointers) via crafted serialized data.
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 16.04 LTS | php7.0 | 7.0.15-0ubuntu0.16.04.2 | USN-3211-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | rh-php70-php +29 | 7.0.27-1.el6 | RHSA-2018:1296 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP2 | php7 | 7.0.7-35.1 | SUSE-SU-2017:0534-1 |
| SLES 12 SP1 | php7 | 7.0.7-35.1 | SUSE-SU-2017:0534-1 |
| SLES 12 | php7 | 7.0.7-35.1 | SUSE-SU-2017:0534-1 |
Advisories 3
- RHSA-2018:1296 Red Hat Security Advisory: rh-php70-php security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-3211-1 php7.0 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- SUSE-SU-2017:0534-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026