php-pear: File overwrite by malicious server
Published Feb 1, 2017
7.5
HIGHCVSS 3.1
EPSS 12.51%
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.
Affected products
No data.
No data.
Red Hat Enterprise Linux 5
php-pear
Will not fix
Red Hat Enterprise Linux 6
php-pear
Will not fix
Red Hat Enterprise Linux 7
php-pear
Will not fix
Red Hat Software Collections
rh-php56-php-pear
Will not fix
Red Hat Software Collections
rh-php70-php-pear
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php-pear | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | php-pear | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | php-pear | Will not fix | n/a |
| Red Hat Software Collections | rh-php56-php-pear | Will not fix | n/a |
| Red Hat Software Collections | rh-php70-php-pear | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Since pear's purpose is to download libraries for inclusion in an application, any use of `pear install` or `pear download` implicitly trusts the server. This vulnerability does not significantly extend the trust already given to pear and to servers used with it.
Red Hat mitigation
This vulnerability only allows files in the current directory to be overwritten, so using `pear download` in a temporary directory effectively mitigates the risk of a dangerous file overwrite occurring.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:N
AV:N/AC:L/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (18 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 12.51% (0.12513) | 96.11th | v5 (v2026.06.15) |
| Jun 15, 2026 | 12.51% (0.12513) | 95.70th | v5 (v2026.06.15) |
| Nov 21, 2025 | 5.74% (0.05743) | 90.06th | v4 (v2025.03.14) |
| Nov 18, 2025 | 12.14% (0.12141) | 93.14th | v4 (v2025.03.14) |
| Jul 12, 2025 | 5.53% (0.05532) | 89.81th | v4 (v2025.03.14) |
| Mar 30, 2025 | 7.54% (0.07540) | 90.98th | v4 (v2025.03.14) |
| Mar 29, 2025 | 20.12% (0.20120) | 92.65th | v4 (v2025.03.14) |
| Mar 17, 2025 | 7.54% (0.07540) | 91.19th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.28% (0.01276) | 86.29th | v3 (v2023.03.01) |
| May 6, 2024 | 1.51% (0.01513) | 86.91th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.51% (0.01513) | 84.90th | v3 (v2023.03.01) |
| Mar 6, 2023 | 8.38% (0.08382) | 93.89th | v2 (v2022.01.01) |
| Apr 1, 2022 | 8.38% (0.08382) | 93.35th | v2 (v2022.01.01) |
| Feb 4, 2022 | 8.38% (0.08382) | 82.62th | v2 (v2022.01.01) |
| Feb 3, 2022 | 3.63% (0.03630) | 71.73th | v1 |
| Jan 6, 2022 | 3.63% (0.03630) | 71.48th | v1 |
| Sep 1, 2021 | 3.63% (0.03630) | 82.60th | v1 |
| Apr 14, 2021 | 3.63% (0.03630) | 0.00th | v1 |
References (11)
- http://hyp3rlinx.altervista.org/advisories/PEAR-ARBITRARY-FILE-DOWNLOAD.txt
- http://pear.php.net/bugs/bug.php?id=21171 x_refsource_MISCVendor Advisory
- http://www.securityfocus.com/bid/95882 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2017-5630 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1418771 Issue Tracking
- https://github.com/advisories/GHSA-xxv8-pv43-57x5 Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-5630
- https://vimeo.com/201341280
- https://web.archive.org/web/20210123222048/https://www.securityfocus.com/bid/95882/
- https://www.cve.org/CVERecord?id=CVE-2017-5630
- https://www.exploit-db.com/exploits/41185/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
| Link | Providers | Tags |
|---|---|---|
| http://hyp3rlinx.altervista.org/advisories/PEAR-ARBITRARY-FILE-DOWNLOAD.txt | ||
| http://pear.php.net/bugs/bug.php?id=21171 | x_refsource_MISCVendor Advisory | |
| http://www.securityfocus.com/bid/95882 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2017-5630 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1418771 | Issue Tracking | |
| https://github.com/advisories/GHSA-xxv8-pv43-57x5 | Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-5630 | ||
| https://vimeo.com/201341280 | ||
| https://web.archive.org/web/20210123222048/https://www.securityfocus.com/bid/95882/ | ||
| https://www.cve.org/CVERecord?id=CVE-2017-5630 | ||
| https://www.exploit-db.com/exploits/41185/ | exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry |
Change history (0)
No recorded changes yet.