CVE-2017-5630 PEAR core file overwrite vulnerability

High 7.5 Published Updated

Remote attackers can overwrite arbitrary files, such as .htaccess, via crafted HTTP responses during PEAR installation, potentially leading to code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2017-5630?

CVE-2017-5630 is a high-severity path traversal vulnerability in n/a, published on 1 Feb 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-74

Which versions are affected by CVE-2017-5630?

2 open source packages ship an affected version, including pear/pear. It affects 1 product.

PackageAffectedFixed in
pear/pear PackagistAll versions to 1.10.1None
pear/pear PackagistAll versions to 1.10.1None

Products include Php Pear.

How do I fix CVE-2017-5630?

No fix has been published for CVE-2017-5630 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2017-5630 being exploited?

There is no known exploitation of CVE-2017-5630 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as DEBIAN-CVE-2017-5630, GHSA-xxv8-pv43-57x5, UBUNTU-CVE-2017-5630.

Is CVE-2017-5630 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free