CVE Vulnerabilities

CVE-2016-7413

Use After Free

Published: Sep 17, 2016 | Modified: Apr 12, 2025
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
4.3 MODERATE
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V3
5.9 MODERATE
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Use-after-free vulnerability in the wddx_stack_destroy function in ext/wddx/wddx.c in PHP before 5.6.26 and 7.x before 7.0.11 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a wddxPacket XML document that lacks an end-tag for a recordset field element, leading to mishandling in a wddx_deserialize call.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
PhpPhp*5.6.25 (including)
PhpPhp7.0.0 (including)7.0.0 (including)
PhpPhp7.0.1 (including)7.0.1 (including)
PhpPhp7.0.2 (including)7.0.2 (including)
PhpPhp7.0.3 (including)7.0.3 (including)
PhpPhp7.0.4 (including)7.0.4 (including)
PhpPhp7.0.5 (including)7.0.5 (including)
PhpPhp7.0.6 (including)7.0.6 (including)
PhpPhp7.0.7 (including)7.0.7 (including)
PhpPhp7.0.8 (including)7.0.8 (including)
PhpPhp7.0.9 (including)7.0.9 (including)
PhpPhp7.0.10 (including)7.0.10 (including)
Red Hat Software Collections for Red Hat Enterprise Linux 6RedHatrh-php70-php-0:7.0.27-1.el6*
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSRedHatrh-php70-php-0:7.0.27-1.el6*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-php70-php-0:7.0.27-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSRedHatrh-php70-php-0:7.0.27-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSRedHatrh-php70-php-0:7.0.27-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSRedHatrh-php70-php-0:7.0.27-1.el7*
Php5Ubuntuesm-infra-legacy/trusty*
Php5Ubuntuprecise*
Php5Ubuntutrusty*
Php5Ubuntutrusty/esm*
Php5Ubuntuupstream*
Php7.0Ubuntudevel*
Php7.0Ubuntuesm-infra/xenial*
Php7.0Ubuntuupstream*
Php7.0Ubuntuxenial*

Potential Mitigations

References