Bug 1404726 (CVE-2016-9934)

Summary: CVE-2016-9934 php: NULL Pointer Dereference in WDDX Packet Deserialization with PDORow
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, dmcphers, fedora, hhorak, jialiu, jokerman, jorton, kseifried, lmeyer, mmccomas, rcollet, sardella, tiwillia, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 5.6.28, php 7.0.13, php 7.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-21 09:02:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1404737, 1554854    
Bug Blocks: 1404738    

Description Adam Mariš 2016-12-14 13:55:16 UTC
Null pointer dereference in WDDX Packet Deserialization with PDORow object was found.

Upstream bug:

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

Upstream patch:

https://github.com/php/php-src/commit/6045de69c7dedcba3eadf7c4bba424b19c81d00d

CVE assignment:

http://seclists.org/oss-sec/2016/q4/658

Comment 1 Adam Mariš 2016-12-14 14:18:56 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1404737]

Comment 2 Cedric Buissart 2017-02-21 09:01:58 UTC
This issue happens when untrusted input is unserialized. Doing so is documented as being unsafe: 
http://php.net/manual/en/function.wddx-deserialize.php#refsect1-function.wddx-deserialize-notes 

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.

Comment 4 errata-xmlrpc 2018-05-03 05:05:26 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.3 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS

Via RHSA-2018:1296 https://access.redhat.com/errata/RHSA-2018:1296