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

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-02 11:50:31 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2016-11-02 11:49:43 UTC
Use after free vulnerability was found in unserialize() exploited via DateInterval::__wakeup().

Upstream bug:

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

CVE assignment:

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

Comment 1 Adam Mariš 2016-11-02 11:50:31 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.

Comment 2 Adam Mariš 2016-11-02 11:51:56 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1391014]


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