Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | php-pear | No fix yet | — |
| Debian 13 | php-pear | No fix yet | — |
| Debian 12 | php-pear | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | php-pear | No fix yet | — |
| Ubuntu 26.04 LTS | php-pear | No fix yet | — |
| Ubuntu 25.10 | php-pear | No fix yet | — |
| Ubuntu 24.04 LTS | php-pear | No fix yet | — |
| Ubuntu 22.04 LTS | php-pear | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | php-pear | No fix yet | — |
| Ubuntu 18.04 LTS | php-pear | No fix yet | — |
| Ubuntu Pro 16.04 LTS | php-pear | No fix yet | — |
| Ubuntu Pro 14.04 LTS | php5 | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- PHP PEAR 1.10.1 - Arbitrary File Download EDB-41185 · webapps · Jan 30, 2017
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | pear/pear | <= 1.10.1 | — | GHSA-xxv8-pv43-57x5 |
References
- 41185 exploit
- 95882 vdb-entry
- http://pear.php.net/bugs/bug.php?id=21171