Bug 1471824 (CVE-2017-11143) - CVE-2017-11143 php: Incorrect WDDX deserialization of boolean parameters leads to DoS
Summary: CVE-2017-11143 php: Incorrect WDDX deserialization of boolean parameters lead...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2017-11143
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: 1554333
Blocks: 1491035
TreeView+ depends on / blocked
 
Reported: 2017-07-17 13:52 UTC by Adam Mariš
Modified: 2020-12-14 09:07 UTC (History)
10 users (show)

Fixed In Version: php 5.6.31, php 7.0.22, php 7.1.8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-21 08:16:11 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1296 0 None None None 2018-05-03 05:07:33 UTC

Description Adam Mariš 2017-07-17 13:52:08 UTC
In PHP before 5.6.31, an invalid free in the WDDX deserialization of
boolean parameters could be used by attackers able to inject XML for
deserialization to crash the PHP interpreter, related to an invalid
free for an empty boolean element in ext/wddx/wddx.c.

Upstream bug:

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

Upstream patch:

https://git.php.net/?p=php-src.git;a=commit;h=2aae60461c2ff7b7fbcdd194c789ac841d0747d7

Comment 1 Adam Mariš 2017-07-21 08:16:11 UTC
This issue happens when untrusted input is deserialized. Doing so is documented as being unsafe:

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

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. Use a safe, standard data interchange format such as JSON (via json_decode() and json_encode()) if you need to pass serialized data to the user.

Comment 3 errata-xmlrpc 2018-05-03 05:07:25 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


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