Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2017-5630 EUVD-2022-5878GHSA-xxv8-pv43-57x5

PEAR core file overwrite vulnerability

Published Feb 1, 2017 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
Debian 14 php-pear No fix yet —
Debian 13 php-pear No fix yet —
Debian 12 php-pear No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist pear/pear <= 1.10.1 — GHSA-xxv8-pv43-57x5

References