{"id":"UBUNTU-CVE-2016-10712","details":"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.","modified":"2026-01-30T00:44:06.094207Z","published":"2018-02-09T00:00:00Z","related":["USN-3566-2","USN-3600-1"],"upstream":["CVE-2016-10712"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2016-10712"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3600-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3566-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2016-10712"}],"affected":[{"package":{"name":"php5","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/php5@5.5.9+dfsg-1ubuntu4.24?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.9+dfsg-1ubuntu4.24"}]}],"versions":["5.5.3+dfsg-1ubuntu2","5.5.3+dfsg-1ubuntu3","5.5.6+dfsg-1ubuntu1","5.5.6+dfsg-1ubuntu2","5.5.8+dfsg-2ubuntu1","5.5.9+dfsg-1ubuntu1","5.5.9+dfsg-1ubuntu2","5.5.9+dfsg-1ubuntu3","5.5.9+dfsg-1ubuntu4","5.5.9+dfsg-1ubuntu4.1","5.5.9+dfsg-1ubuntu4.2","5.5.9+dfsg-1ubuntu4.3","5.5.9+dfsg-1ubuntu4.4","5.5.9+dfsg-1ubuntu4.5","5.5.9+dfsg-1ubuntu4.6","5.5.9+dfsg-1ubuntu4.7","5.5.9+dfsg-1ubuntu4.9","5.5.9+dfsg-1ubuntu4.11","5.5.9+dfsg-1ubuntu4.12","5.5.9+dfsg-1ubuntu4.13","5.5.9+dfsg-1ubuntu4.14","5.5.9+dfsg-1ubuntu4.16","5.5.9+dfsg-1ubuntu4.17","5.5.9+dfsg-1ubuntu4.19","5.5.9+dfsg-1ubuntu4.20","5.5.9+dfsg-1ubuntu4.21","5.5.9+dfsg-1ubuntu4.22","5.5.9+dfsg-1ubuntu4.23"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache2-mod-php5","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"libapache2-mod-php5filter","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"libphp5-embed","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php-pear","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-cgi","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-cli","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-common","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-curl","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-dev","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-enchant","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-fpm","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-gd","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-gmp","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-intl","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-ldap","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-mysql","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-mysqlnd","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-odbc","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-pgsql","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-pspell","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-readline","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-recode","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-snmp","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-sqlite","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-sybase","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-tidy","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-xmlrpc","binary_version":"5.5.9+dfsg-1ubuntu4.24"},{"binary_name":"php5-xsl","binary_version":"5.5.9+dfsg-1ubuntu4.24"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-10712.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"low"}]}