cbcvebase.
CVE-2016-7124
published 2016-09-12

CVE-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
VendorProductVersion rangeFixed in
phpphp<= 5.6.24
phpphp
phpphp
phpphp
phpphp
phpphp
phpphp
phpphp
phpphp
phpphp
phpphp
php5php5>= 0 < 5.5.9+dfsg-1ubuntu4.205.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.