CVE-2017-5630

NameCVE-2017-5630
DescriptionPECL 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-pear (PTS)stretch1:1.10.1+submodules+notgz-9vulnerable
buster, sid1:1.10.5+submodules+notgz-1vulnerable
php5 (PTS)wheezy5.4.45-0+deb7u2vulnerable
wheezy (security)5.4.45-0+deb7u11vulnerable
jessie5.6.30+dfsg-0+deb8u1vulnerable
jessie (security)5.6.33+dfsg-0+deb8u1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-pearsource(unstable)(unfixed)unimportant
php5source(unstable)(unfixed)unimportant

Notes

https://pear.php.net/bugs/bug.php?id=21171
pear performs no kind of authentication/integrity checks for downloads, so an attacker can MITM freely anyway

Search for package or bug name: Reporting problems