Bug 1315328 (CVE-2016-3141) - CVE-2016-3141 php: Use after free in WDDX Deserialize when processing XML data
Summary: CVE-2016-3141 php: Use after free in WDDX Deserialize when processing XML data
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2016-3141
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1315330
Blocks: 1315348
TreeView+ depends on / blocked
 
Reported: 2016-03-07 13:39 UTC by Adam Mariš
Modified: 2020-01-17 15:41 UTC (History)
15 users (show)

Fixed In Version: php 5.5.33, php 5.6.19, php 7.0.4
Clone Of:
Environment:
Last Closed: 2016-06-16 11:51:22 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2750 0 normal SHIPPED_LIVE Moderate: rh-php56 security, bug fix, and enhancement update 2016-11-15 16:40:02 UTC

Description Adam Mariš 2016-03-07 13:39:01 UTC
Use-after-free vulnerability in WDDX Deserialize when processing XML data was found.

Upstream bug (contains reproducer):

https://bugs.php.net/bug.php?id=71587

Upstream patch:

http://git.php.net/?p=php-src.git;a=commit;h=b1bd4119bcafab6f9a8f84d92cd65eec3afeface

Comment 1 Adam Mariš 2016-03-07 13:39:28 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1315330]

Comment 2 Adam Mariš 2016-03-14 10:03:55 UTC
CVE assignment:

http://seclists.org/oss-sec/2016/q1/625

Comment 3 Tomas Hoger 2016-06-16 11:51:22 UTC
This issue happens when untrusted input is unserialized.  Doing so it documented as being unsafe:

  http://php.net/manual/en/function.wddx-deserialize.php

  Warning
  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:

  extension=wddx.so

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>/.

Comment 4 errata-xmlrpc 2016-11-15 11:49:51 UTC
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


Note You need to log in before you can comment on or make changes to this bug.