---
title: "CVE-2016-10712\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2016-10712?format=md
keywords: index, follow
---

# CVE-2016-10712

Publication date 9 February 2018

Last updated 25 August 2025

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.5 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2016-10712?format=md#impact-score)

Toggle side navigation

## Description

In PHP before 5.5.32, 5.6.x before 5.6.18, and 7.x before 7.0.3, all of the
return values of stream\_get\_meta\_data can be controlled if the input can be
controlled (e.g., during file uploads). For example, a "$uri =
stream\_get\_meta\_data(fopen($file, "r"))['uri']" call mishandles the case
where $file is data:text/plain;uri=eviluri, -- in other words, metadata can
be set by an attacker.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php5 | 19.04 disco | Not in release |
| 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 17.10 artful | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Fixed 5.5.9+dfsg-1ubuntu4.24 |
| php7.0 | 19.04 disco | Not in release |
| 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 17.10 artful | Not in release |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not in release |
| php7.1 | 19.04 disco | Not in release |
| 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 17.10 artful | Not affected |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2016-10712?format=md#patch-details)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| php5 | * Upstream:   <https://git.php.net/?p=php-src.git;a=commit;h=6297a117d77fa3a0df2e21ca926a92c231819cd5> * Upstream:   <http://git.php.net/?p=php-src.git;a=commit;h=2a7d8c0a06de8123034b136b0c717576b6e36fae> |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.5 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | High |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.5 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-10712)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2016-10712)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2016-10712)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2016-10712)

### Related Ubuntu Security Notices (USN)

+ [USN-3600-1](https://usn.ubuntu.com/USN-3600-1)
+ PHP vulnerabilities
+ 19 March 2018

+ [USN-3566-2](https://usn.ubuntu.com/USN-3566-2)
+ PHP vulnerabilities
+ 22 May 2019

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2016-10712>
