CVE-2016-7124
published 2016-09-12CVE-2016-7124: ext/standard/var_unserializer.c in PHP before 5.6.25 and 7.x before 7.0.10 mishandles certain invalid objects, which allows remote attackers to cause a denial…
PriorityP350critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
16.48%
96.6th percentile
ext/standard/var_unserializer.c in PHP before 5.6.25 and 7.x before 7.0.10 mishandles certain invalid objects, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via crafted serialized data that leads to a (1) __destruct call or (2) magic method call.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| php | php | <= 5.6.24 | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php5 | php5 | >= 0 < 5.5.9+dfsg-1ubuntu4.20 | 5.5.9+dfsg-1ubuntu4.20 |
Detection & IOCsextracted from sources · hover to see the quote
- →Vulnerability exists in ext/standard/var_unserializer.c — monitor for crafted serialized data passed to PHP's unserialize() that contains unexpected/invalid objects, which can trigger __destruct or other magic method calls without invoking __wakeup() ↗
- →Attack vector is deserialization of untrusted input via PHP's unserialize() function — detect user-controlled data reaching unserialize() calls in application code or HTTP request parameters ↗
- →The exploit bypasses __wakeup() and directly invokes __destruct() with crafted properties — look for deserialization flows where __wakeup() is expected as a security guard but __destruct() fires instead on malformed objects ↗
- ·Affected versions are PHP before 5.6.25 and PHP 7.x before 7.0.10; patch is available at the upstream commit referenced in the bug report ↗
- ·Red Hat Enterprise Linux 5, 6, and 7 packages (php, php53) are marked 'Will not fix' — deployments on these platforms remain permanently vulnerable unless mitigated at the application layer ↗
- ·Upstream patch is available at the referenced GitHub commit for php-src ↗
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
PHP vulnerabilities
vendor_ubuntu·2016-10-04·CVSS 9.8
CVE-2016-7124 [CRITICAL] PHP vulnerabilities
Title: PHP vulnerabilities
Summary: Several security issues were fixed in PHP.
Taoguang Chen discovered that PHP incorrectly handled certain invalid
objects when unserializing data. A remote attacker could use this issue to
cause PHP to crash, resulting in a denial of service, or possibly execute
arbitrary code. (CVE-2016-7124)
Taoguang Chen discovered that PHP incorrectly handled invalid session
names. A remote attacker could use this issue to inject arbitrary session
data. (CVE-2016-7125)
It was discovered that PHP incorrectly handled certain gamma values in the
imagegammacorrect function. A remote attacker could use this issue to cause
PHP to crash, resulting in a denial of service, or possibly execute
arbitrary code. (CVE-2016-7127)
It was discovered that PHP incorrectly handled c
Red Hat
php: bypass __wakeup() in deserialization of an unexpected object
vendor_redhat·2016-09-02·CVSS 9.8
CVE-2016-7124 [CRITICAL] php: bypass __wakeup() in deserialization of an unexpected object
php: bypass __wakeup() in deserialization of an unexpected object
ext/standard/var_unserializer.c in PHP before 5.6.25 and 7.x before 7.0.10 mishandles certain invalid objects, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via crafted serialized data that leads to a (1) __destruct call or (2) magic method call.
Package: php (Red Hat Enterprise Linux 5) - Will not fix
Package: php53 (Red Hat Enterprise Linux 5) - Will not fix
Package: php (Red Hat Enterprise Linux 6) - Will not fix
Package: php (Red Hat Enterprise Linux 7) - Will not fix
Package: php54-php (Red Hat Software Collections) - Will not fix
Package: php55-php (Red Hat Software Collections) - Will not fix
GHSA
GHSA-c8m3-38q9-8587: ext/standard/var_unserializer
ghsa_unreviewed·2022-05-14
CVE-2016-7124 [CRITICAL] CWE-502 GHSA-c8m3-38q9-8587: ext/standard/var_unserializer
ext/standard/var_unserializer.c in PHP before 5.6.25 and 7.x before 7.0.10 mishandles certain invalid objects, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via crafted serialized data that leads to a (1) __destruct call or (2) magic method call.
OSV
php5, php7.0 vulnerabilities
osv·2016-10-04·CVSS 9.8
CVE-2016-7124 [CRITICAL] php5, php7.0 vulnerabilities
php5, php7.0 vulnerabilities
Taoguang Chen discovered that PHP incorrectly handled certain invalid
objects when unserializing data. A remote attacker could use this issue to
cause PHP to crash, resulting in a denial of service, or possibly execute
arbitrary code. (CVE-2016-7124)
Taoguang Chen discovered that PHP incorrectly handled invalid session
names. A remote attacker could use this issue to inject arbitrary session
data. (CVE-2016-7125)
It was discovered that PHP incorrectly handled certain gamma values in the
imagegammacorrect function. A remote attacker could use this issue to cause
PHP to crash, resulting in a denial of service, or possibly execute
arbitrary code. (CVE-2016-7127)
It was discovered that PHP incorrectly handled certain crafted TIFF image
thumbnails. A remote atta
OSV
CVE-2016-7124: ext/standard/var_unserializer
osv·2016-09-11·CVSS 9.8
CVE-2016-7124 [CRITICAL] CVE-2016-7124: ext/standard/var_unserializer
ext/standard/var_unserializer.c in PHP before 5.6.25 and 7.x before 7.0.10 mishandles certain invalid objects, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via crafted serialized data that leads to a (1) __destruct call or (2) magic method call.
No detection rules found.
No public exploits indexed.
http://openwall.com/lists/oss-security/2016/09/02/9http://rhn.redhat.com/errata/RHSA-2016-2750.htmlhttp://www.php.net/ChangeLog-5.phphttp://www.php.net/ChangeLog-7.phphttp://www.securityfocus.com/bid/92756http://www.securitytracker.com/id/1036680https://bugs.php.net/bug.php?id=72663https://github.com/php/php-src/commit/20ce2fe8e3c211a42fee05a461a5881be9a8790e?w=1https://security.gentoo.org/glsa/201611-22https://www.tenable.com/security/tns-2016-19http://openwall.com/lists/oss-security/2016/09/02/9http://rhn.redhat.com/errata/RHSA-2016-2750.htmlhttp://www.php.net/ChangeLog-5.phphttp://www.php.net/ChangeLog-7.phphttp://www.securityfocus.com/bid/92756http://www.securitytracker.com/id/1036680https://bugs.php.net/bug.php?id=72663https://github.com/php/php-src/commit/20ce2fe8e3c211a42fee05a461a5881be9a8790e?w=1https://security.gentoo.org/glsa/201611-22https://www.tenable.com/security/tns-2016-19
2016-09-12
Published