php: Output of stream_get_meta_data can be falsified by its input
Published Feb 9, 2018
7.5
HIGHCVSS 3.0
EPSS 2.25%
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.
Affected products
No data.
Configuration 1
Configuration 2
- 14.04
- 16.04
- 17.10
No data.
Red Hat Enterprise Linux 5
php
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
Red Hat Enterprise Linux 6
php
Will not fix
Red Hat Enterprise Linux 7
php
Will not fix
Red Hat Software Collections
php54-php
Will not fix
Red Hat Software Collections
php55-php
Will not fix
Red Hat Software Collections
rh-php56-php
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | php | Will not fix | n/a |
| Red Hat Software Collections | php54-php | Will not fix | n/a |
| Red Hat Software Collections | php55-php | Will not fix | n/a |
| Red Hat Software Collections | rh-php56-php | Affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
AV:N/AC:L/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.25% (0.02254) | 82.31th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.33% (0.02333) | 81.27th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.36% (0.00357) | 55.80th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.19% (0.00191) | 57.84th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.19% (0.00191) | 55.51th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.20% (0.00200) | 56.07th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Sep 10, 2022 | 1.02% (0.01018) | 38.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.02% (0.01018) | 36.86th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
References (8)
- https://access.redhat.com/security/cve/CVE-2016-10712 Vendor Advisory
- https://bugs.php.net/bug.php?id=71323 x_refsource_CONFIRMExploitIssue TrackingPatchVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1305523 Issue Tracking
- https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=6297a117d77fa3a0df2e21ca926a92c231819cd5 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2016-10712
- https://usn.ubuntu.com/3566-2/ vendor-advisoryx_refsource_UBUNTU
- https://usn.ubuntu.com/3600-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2016-10712
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2016-10712 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=71323 | x_refsource_CONFIRMExploitIssue TrackingPatchVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1305523 | Issue Tracking | |
| https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=6297a117d77fa3a0df2e21ca926a92c231819cd5 | x_refsource_CONFIRM | |
| https://nvd.nist.gov/vuln/detail/CVE-2016-10712 | ||
| https://usn.ubuntu.com/3566-2/ | vendor-advisoryx_refsource_UBUNTU | |
| https://usn.ubuntu.com/3600-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2016-10712 |
Change history (0)
No recorded changes yet.