Bug 1391000 (CVE-2016-9137) - CVE-2016-9137 php: Use after free in unserialize()
Summary: CVE-2016-9137 php: Use after free in unserialize()
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2016-9137
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: 1391008
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-02 11:39 UTC by Adam Mariš
Modified: 2019-09-29 13:59 UTC (History)
14 users (show)

Fixed In Version: php 5.6.27, php 7.0.12
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-02 11:42:28 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2016-11-02 11:39:58 UTC
A use after free vulnerability was found in unserialize().

Upstream bug:

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

Upstream patch:

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

CVE assignment:

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

Comment 1 Adam Mariš 2016-11-02 11:40:35 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1391008]

Comment 2 Adam Mariš 2016-11-02 11:42:28 UTC
This issue happens when untrusted input is unserialized. Doing so is documented as being unsafe:

  http://php.net/manual/en/function.unserialize.php

  Do not pass untrusted user input to unserialize(). 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.


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