{"id":"UBUNTU-CVE-2017-5630","details":"PECL in the download utility class in the Installer in PEAR Base System v1.10.1 does not validate file types and filenames after a redirect, which allows remote HTTP servers to overwrite files via crafted responses, as demonstrated by a .htaccess overwrite.","modified":"2026-05-20T16:03:22.079552109Z","published":"2017-02-01T23:59:00Z","upstream":["CVE-2017-5630"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-5630"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-5630"}],"affected":[{"package":{"name":"php5","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/php5?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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","5.5.9+dfsg-1ubuntu4.24","5.5.9+dfsg-1ubuntu4.25","5.5.9+dfsg-1ubuntu4.26","5.5.9+dfsg-1ubuntu4.27","5.5.9+dfsg-1ubuntu4.29","5.5.9+dfsg-1ubuntu4.29+esm1","5.5.9+dfsg-1ubuntu4.29+esm2","5.5.9+dfsg-1ubuntu4.29+esm3","5.5.9+dfsg-1ubuntu4.29+esm4","5.5.9+dfsg-1ubuntu4.29+esm5","5.5.9+dfsg-1ubuntu4.29+esm6","5.5.9+dfsg-1ubuntu4.29+esm8","5.5.9+dfsg-1ubuntu4.29+esm10","5.5.9+dfsg-1ubuntu4.29+esm11","5.5.9+dfsg-1ubuntu4.29+esm12","5.5.9+dfsg-1ubuntu4.29+esm13","5.5.9+dfsg-1ubuntu4.29+esm14","5.5.9+dfsg-1ubuntu4.29+esm15","5.5.9+dfsg-1ubuntu4.29+esm16"],"ecosystem_specific":{"binaries":[{"binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16","binary_name":"libapache2-mod-php5"},{"binary_name":"libapache2-mod-php5filter","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"libphp5-embed","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16","binary_name":"php-pear"},{"binary_name":"php5","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-cgi","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-cli","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-common","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-curl","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16","binary_name":"php5-enchant"},{"binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16","binary_name":"php5-fpm"},{"binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16","binary_name":"php5-gd"},{"binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16","binary_name":"php5-gmp"},{"binary_name":"php5-intl","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16","binary_name":"php5-ldap"},{"binary_name":"php5-mysql","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-mysqlnd","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-odbc","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-pgsql","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-pspell","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-readline","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-recode","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16","binary_name":"php5-snmp"},{"binary_name":"php5-sqlite","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_name":"php5-sybase","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"},{"binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16","binary_name":"php5-tidy"},{"binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16","binary_name":"php5-xmlrpc"},{"binary_name":"php5-xsl","binary_version":"5.5.9+dfsg-1ubuntu4.29+esm16"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-5630.json"}},{"package":{"name":"php-pear","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/php-pear?arch=source&distro=esm-infra%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.10.1+submodules+notgz-4","1:1.10.1+submodules+notgz-6","1:1.10.1+submodules+notgz-6ubuntu0.1","1:1.10.1+submodules+notgz-6ubuntu0.2","1:1.10.1+submodules+notgz-6ubuntu0.3","1:1.10.1+submodules+notgz-6ubuntu0.3+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:1.10.1+submodules+notgz-6ubuntu0.3+esm1","binary_name":"php-pear"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-5630.json"}},{"package":{"name":"php-pear","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/php-pear?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.10.5+submodules+notgz-1","1:1.10.5+submodules+notgz-1ubuntu1","1:1.10.5+submodules+notgz-1ubuntu1.18.04.1","1:1.10.5+submodules+notgz-1ubuntu1.18.04.2","1:1.10.5+submodules+notgz-1ubuntu1.18.04.3","1:1.10.5+submodules+notgz-1ubuntu1.18.04.4"],"ecosystem_specific":{"binaries":[{"binary_version":"1:1.10.5+submodules+notgz-1ubuntu1.18.04.4","binary_name":"php-pear"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-5630.json"}},{"package":{"name":"php-pear","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/php-pear?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.10.9+submodules+notgz-1","1:1.10.9+submodules+notgz-1ubuntu0.20.04.1","1:1.10.9+submodules+notgz-1ubuntu0.20.04.2","1:1.10.9+submodules+notgz-1ubuntu0.20.04.3"],"ecosystem_specific":{"binaries":[{"binary_version":"1:1.10.9+submodules+notgz-1ubuntu0.20.04.3","binary_name":"php-pear"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-5630.json"}},{"package":{"name":"php-pear","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/php-pear?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.10.12+submodules+notgz+20210212-1ubuntu1","1:1.10.12+submodules+notgz+20210212-1ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_name":"php-pear","binary_version":"1:1.10.12+submodules+notgz+20210212-1ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-5630.json"}},{"package":{"name":"php-pear","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/php-pear?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.10.13+submodules+notgz+2022032202-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"php-pear","binary_version":"1:1.10.13+submodules+notgz+2022032202-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-5630.json"}},{"package":{"name":"php-pear","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/php-pear?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.10.13+submodules+notgz+2022032202-2build1","1:1.10.16+submodules+notgz-3"],"ecosystem_specific":{"binaries":[{"binary_name":"php-pear","binary_version":"1:1.10.16+submodules+notgz-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-5630.json"}},{"package":{"name":"php-pear","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/php-pear?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.10.16+submodules+notgz-3","1:1.10.16+submodules+notgz-3build1","1:1.10.16+submodules+notgz-3ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:1.10.16+submodules+notgz-3ubuntu1","binary_name":"php-pear"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-5630.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"negligible"}]}