CVE-2018-1000005: Critical severity haxx libcurl vulnerability
An out-of-bounds read in code handling HTTP/2 trailers was found. This could lead to a denial-of-service or an information disclosure in some circumstances.
Affected versions: libcurl 7.49.0 to and including 7.57.0 Not affected versions: libcurl < 7.49.0 and >= 7.58.0
Upstream bug report:
https://github.com/curl/curl/pull/2231
Upstream patch:
https://github.com/curl/curl/commit/fa3dbb9a147488a294.patch
Other sources
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.
Affected Software
Remediation
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2018-1000005?
The severity of CVE-2018-1000005 is critical with a value of 9.1.
How does CVE-2018-1000005 affect libcurl?
CVE-2018-1000005 affects libcurl versions 7.49.0 to and including 7.57.0.
What is the remedy for CVE-2018-1000005?
The remedy for CVE-2018-1000005 is to update libcurl to version 7.58.0 or higher.
Where can I find more information about CVE-2018-1000005?
More information about CVE-2018-1000005 can be found at the following references: [Github Pull Request](https://github.com/curl/curl/pull/2231), [Github Commit](https://github.com/curl/curl/commit/fa3dbb9a147488a294.patch), [Curl Advisory](https://curl.haxx.se/docs/adv_2018-824a.html).
What is the CWE for CVE-2018-1000005?
The CWE for CVE-2018-1000005 is CWE-125 (Out-of-bounds Read).