Vulnerability Details : CVE-2018-1000005
libcurl 7.49.0 to and including 7.57.0 contains an out bounds read in code handling HTTP/2 trailers. It was reported (https://github.com/curl/curl/pull/2231) that reading an HTTP/2 trailer could mess up future trailers since the stored size was one byte less than required. The problem is that the code that creates HTTP/1-like headers from the HTTP/2 trailer data once appended a string like `:` to the target buffer, while this was recently changed to `: ` (a space was added after the colon) but the following math wasn't updated correspondingly. When accessed, the data is read out of bounds and causes either a crash or that the (too large) data gets passed to client write. This could lead to a denial-of-service situation or an information disclosure if someone has a service that echoes back or uses the trailers for something.
Vulnerability category: Denial of serviceInformation leak
Exploit prediction scoring system (EPSS) score for CVE-2018-1000005
Probability of exploitation activity in the next 30 days: 0.66%
Percentile, the proportion of vulnerabilities that are scored at or less: ~ 77 % EPSS Score History EPSS FAQ
CVSS scores for CVE-2018-1000005
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|
6.4
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:P |
10.0
|
4.9
|
nvd@nist.gov |
9.1
|
CRITICAL | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
3.9
|
5.2
|
nvd@nist.gov |
CWE ids for CVE-2018-1000005
-
The product reads data past the end, or before the beginning, of the intended buffer.Assigned by: nvd@nist.gov (Primary)
References for CVE-2018-1000005
-
http://www.securitytracker.com/id/1040273
cURL HTTP/2 Trailer Processor Out-of-Bound Memory Read Error Lets Remote Users Deny Service or Obtain Potentially Sensitive Information - SecurityTrackerThird Party Advisory;VDB Entry
-
https://curl.haxx.se/docs/adv_2018-824a.html
curl - HTTP/2 trailer out-of-bounds read - CVE-2018-1000005Patch;Vendor Advisory
-
https://www.debian.org/security/2018/dsa-4098
Debian -- Security Information -- DSA-4098-1 curlThird Party Advisory
-
https://github.com/curl/curl/pull/2231
http2.c: fix incorrect trailer buffer size by ZhouyihaiDing · Pull Request #2231 · curl/curl · GitHubIssue Tracking;Patch;Third Party Advisory
-
https://access.redhat.com/errata/RHSA-2019:1543
RHSA-2019:1543 - Security Advisory - Red Hat Customer Portal
-
https://usn.ubuntu.com/3554-1/
USN-3554-1: curl vulnerabilities | Ubuntu security noticesThird Party Advisory
Products affected by CVE-2018-1000005
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*
- cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:*