Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1418771 - (CVE-2017-5630) CVE-2017-5630 php-pear: File overwrite by malicious server
CVE-2017-5630 php-pear: File overwrite by malicious server
Status: CLOSED WONTFIX
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20170126,repor...
: Security
Depends On: 1418773
Blocks: 1418772
  Show dependency treegraph
 
Reported: 2017-02-02 11:54 EST by Andrej Nemec
Modified: 2017-04-06 09:47 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in php-pear where if a malicious server responded to a pear
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-04-06 03:08:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andrej Nemec 2017-02-02 11:54:02 EST
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.

Upstream bug:

http://pear.php.net/bugs/bug.php?id=21171
Comment 1 Andrej Nemec 2017-02-02 11:56:06 EST
Created php-pear tracking bugs for this issue:

Affects: fedora-all [bug 1418773]
Comment 3 Doran Moppert 2017-04-06 03:07:07 EDT
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.
Comment 4 Doran Moppert 2017-04-06 03:07:16 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.