Back to CVE catalog
CVE-2016-10712

Controllable return values of stream_get_meta_data

Multiple products

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityNone
IntegrityHigh
AvailabilityNone

CVSS summary v3.0

7.5High
Published:
Updated:
EPSS:
2.254%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:phpphpAffected versions:
≤ 5.5.31Show full version range for php
≥ 5.6.0, ≤ 5.6.17≥ 7.0.0, ≤ 7.0.2
Vendor:Canonicalubuntu linuxAffected versions:
14.04Show full version range for ubuntu linux
16.0417.10
Vendor:redhatphp
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for php
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatphp-bcmath
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for php-bcmath
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatphp-cli
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for php-cli
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatphp-common
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for php-common
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatphp-dba
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for php-dba
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatphp-devel
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for php-devel
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatphp-embedded
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for php-embedded
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatphp-enchant
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for php-enchant
  • Other versions are affected by default; consult the source for exceptions.

1–10 of 229 · Page 1 of 23

CVSS scores and metrics9
[email protected] · NVD (Primary)Primary7.5 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
None
Integrity
High
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVE-2016-10712 · OSV (source-vector)7.5 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
None
Integrity
High
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvd · Wazuh CTI (cna)7.5 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
None
Integrity
High
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
redhat · Wazuh CTI (adp)3.7 / 10LowCVSS 3.0Details
Attack complexity
High
Confidentiality
None
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
suse · Wazuh CTI (adp)9.4 / 10CriticalCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
canonical · Wazuh CTI (adp)7.5 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
None
Integrity
High
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Red Hat · Red Hat VEX (adp)3.7 / 10LowCVSS 3.0Details
Attack complexity
High
Confidentiality
None
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
[email protected] · NVD (Primary)5.0 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
None
Integrity
Partial
Availability
None
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:N/I:P/A:N
nvd · Wazuh CTI (cna)5.0 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
None
Integrity
Partial
Availability
None
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories19

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences