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

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-pear (PTS)stretch1:1.10.1+submodules+notgz-9+deb9u1vulnerable
stretch (security)1:1.10.1+submodules+notgz-9+deb9u3vulnerable
buster, buster (security)1:1.10.6+submodules+notgz-1.1+deb10u2vulnerable
bookworm, sid, bullseye1:1.10.12+submodules+notgz+20210212-1vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs

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