LiveActive security incident?Get immediate response
CVE Record

CVE-2016-10712: 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_met...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This issue affects old PHP versions where a user-controlled input stream can influence metadata returned by stream_get_meta_data. If an application trusts that metadata, such as the reported URI, an attacker may mislead application logic around uploaded or opened files.

Executive priority

Prioritize remediation where legacy PHP remains in production, especially around upload or import workflows. Broader urgency is lower without cited active exploitation, but unsupported PHP versions carry compounding operational risk.

Technical view

PHP before 5.5.32, 5.6.x before 5.6.18, and 7.x before 7.0.3 allowed attacker-controlled stream metadata values when input streams were controllable, including data: URI cases. Impact depends on application code trusting stream metadata for decisions.

Likely exposure

Exposure is most likely in legacy PHP applications handling uploads, imports, or user-supplied streams and calling stream_get_meta_data results in security, routing, storage, or trust decisions.

Exploitation context

The bundle does not cite active exploitation, and KEV is false. Public details indicate attacker influence requires controllable input passed into affected stream handling, then application misuse of returned metadata.

Researcher notes

The available evidence is narrow: CVE description, PHP bug, PHP commit, and Ubuntu advisories. No CVSS, CWE, or exploitation telemetry is included. Validate impact through code paths, not version matching alone.

Mitigation direction

  • Upgrade PHP beyond 5.5.32, 5.6.18, or 7.0.3 as applicable.
  • Apply downstream vendor security packages, including relevant Ubuntu advisories where applicable.
  • Stop trusting stream_get_meta_data output from attacker-controlled streams.
  • Use trusted application state for file identity, path, and authorization decisions.
  • Check current vendor guidance for unsupported or downstream PHP builds.

Validation and detection

  • Inventory runtime PHP versions across web and worker hosts.
  • Search code for stream_get_meta_data calls and use of returned uri values.
  • Review upload and import paths that accept user-controlled files or stream URIs.
  • Confirm patched PHP package versions through the operating system package manager.
  • Test that file authorization does not depend on attacker-controlled stream metadata.
Prepared
Confidence
medium
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2016-10712 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.