Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1515760 - (CVE-2017-8817) CVE-2017-8817 curl: FTP wildcard out of bounds read
CVE-2017-8817 curl: FTP wildcard out of bounds read
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=20171129,repor...
: Security
Depends On: 1518622 1518620 1518621 1526300
Blocks: 1515763
  Show dependency treegraph
 
Reported: 2017-11-21 05:36 EST by Adam Mariš
Modified: 2018-01-11 07:47 EST (History)
14 users (show)

See Also:
Fixed In Version: curl 7.57.0
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-01-03 09:48:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Upstream patch (3.58 KB, patch)
2017-11-21 05:43 EST, Adam Mariš
no flags Details | Diff

  None (edit)
Description Adam Mariš 2017-11-21 05:36:58 EST
libcurl contains a read out of bounds flaw in the FTP wildcard function.

libcurl's FTP wildcard matching feature, which is enabled with the
`CURLOPT_WILDCARDMATCH` option can use a built-in wildcard function or a user
provided one. The built-in wildcard function has a flaw that makes it not
detect the end of the pattern string if it ends with an open bracket (`[`) but
instead it will continue reading the heap beyond the end of the URL buffer
that holds the wildcard.

For applications that use HTTP(S) URLs, allow libcurl to handle redirects and
have FTP wildcards enabled, this flaw can be triggered by malicious servers
that can redirect clients to a URL using such a wildcard pattern.

- Affected versions: libcurl 7.21.0 to and including 7.56.1
- Not affected versions: libcurl < 7.21.0 and >= 7.57.0
Comment 2 Adam Mariš 2017-11-21 05:43 EST
Created attachment 1356600 [details]
Upstream patch
Comment 3 Adam Mariš 2017-11-21 05:46:20 EST
Acknowledgments:

Name: the Curl project
Upstream: the OSS-Fuzz project
Comment 4 Adam Mariš 2017-11-21 05:47:12 EST
Issue was introduced by commit:

https://github.com/curl/curl/commit/0825cd80a62c
Comment 5 Adam Mariš 2017-11-29 05:49:01 EST
External References:

https://curl.haxx.se/docs/adv_2017-ae72.html
Comment 6 Adam Mariš 2017-11-29 05:52:23 EST
Created curl tracking bugs for this issue:

Affects: fedora-all [bug 1518621]


Created mingw-curl tracking bugs for this issue:

Affects: epel-7 [bug 1518622]
Affects: fedora-all [bug 1518620]
Comment 10 Tomas Hoger 2018-01-03 09:48:42 EST
It should be noted that the affected functionality - FTP wildcard file matching - is not enabled by default and must be enabled explicitly in applications using libcurl using the CURLOPT_WILDCARDMATCH option.  The curl command line tool does not enable the feature or provide a way for user to enable it.  The curl tool's globbing functionality controlled via the -g / --globoff option is unrelated to this FTP wildcard matching.

The rare use of this functionality reduces the impact of this flaw.

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