Red Hat Bugzilla – Bug 1315328
CVE-2016-3141 php: Use after free in WDDX Deserialize when processing XML data
Last modified: 2016-11-15 09:11:18 EST
Use-after-free vulnerability in WDDX Deserialize when processing XML data was found.
Upstream bug (contains reproducer):
Created php tracking bugs for this issue:
Affects: fedora-all [bug 1315330]
This issue happens when untrusted input is unserialized. Doing so it documented as being unsafe:
Do not pass untrusted user input to wddx_deserialize(). Unserialization
can result in code being loaded and executed due to object instantiation
and autoloading, and a malicious user may be able to exploit this.
Affected code is part of the WDDX extension. In Red Hat products, this extension is packaged in the php-xml subpackages. Systems without php-xml installed can not be affected by this issue. If system requires one of the other extensions packaged in php-xml packages, but not the WDDX extension, it is possible to prevent PHP from loading the extension by commenting out the following line in the wddx.ini configuration file:
The configuration file can be found in the php.d configuration directory. Depending on whether PHP packages from Red Hat Enterprise Linux or Red Hat Software Collections are used, php.d directory can be found in one of the following locations: /etc, /opt/rh/<collection>/root/etc/, or /etc/opt/rh/<collection>/.
This issue has been addressed in the following products:
Red Hat Software Collections for Red Hat Enterprise Linux 6
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
Red Hat Software Collections for Red Hat Enterprise Linux 7
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
Via RHSA-2016:2750 https://rhn.redhat.com/errata/RHSA-2016-2750.html