CVE-2017-12934 json
ext/standard/var_unserializer.re in PHP 7.0.x before 7.0.21 and 7.1.x before 7.1.7 is prone to a heap use after free while unserializing un…
published 2017-08-18 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-4458
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.6%
- EPSS 3.6% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
ext/standard/var_unserializer.re in PHP 7.0.x before 7.0.21 and 7.1.x before 7.1.7 is prone to a heap use after free while unserializing untrusted data, related to the zval_get_type function in Zend/zend_types.h. Exploitation of this issue can have an unspecified impact on the integrity of PHP.
Patch / fix
- rh-php70-php RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
- rh-php70-php-gd RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php-gd RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
- rh-php70-php-cli RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php-cli RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
- rh-php70-php-dba RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php-dba RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
red hat advisories RHSA-2018:1296
- php7 SLE Software Development Kit 12 SP3, SLE Software Development Kit 12 SP2, SLE Module for Web and Scripting 12 7.0.7-50.18.1
suse advisories SUSE-SU-2017:2468-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-12934 updated cvss 8.1
php: heap use after free in ext/standard/var_unserializer.re
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 morefixed: vendor fix RHSA-2018:1296
+2 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more -
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Software Collections rh-php56-php, rh-php56-php-gd, rh-php56-php-cli, rh-php56-php-dba, rh-php56-php-dbg, rh-php56-php-fpm, +22 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.63% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
access.redhat.com
/errata/RHSA-2018:1296
vendor-advisory
-
debian.org
/security/2018/dsa-4080
vendor-advisory
-
php.net
/ChangeLog-7.php
vendor-advisory
-
bugs.php.net
/bug.php?id=74101
issue-tracking, third-party-advisory
-
securityfocus.com
/bid/100428
vdb-entry, third-party-advisory
Sources
- CVE List CVE-2017-12934
- NVD CVE-2017-12934
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.