Related Vulnerabilities: CVE-2018-1000301  

curl >= 7.20.0 and < 7.60.0 can be tricked into reading data beyond the end of a heap based buffer used to store downloaded content. When servers send RTSP responses back to curl, the data starts out with a set of headers. curl parses that data to separate it into a number of headers to deal with those appropriately and to find the end of the headers that signal the start of the "body" part. The function that splits up the response into headers is called Curl_http_readwrite_headers() and in situations where it can't find a single header in the buffer, it might end up leaving a pointer pointing into the buffer instead of to the start of the buffer which then later on may lead to an out of buffer read when code assumes that pointer points to a full buffer size worth of memory to use. This could potentially lead to information leakage but most likely a crash/denial of service for applications if a server triggers this flaw.

Severity Medium

Remote Yes

Type Denial of service

Description

curl >= 7.20.0 and < 7.60.0 can be tricked into reading data beyond the end of a heap based buffer used to store downloaded content.
When servers send RTSP responses back to curl, the data starts out with a set of headers. curl parses that data to separate it into a number of headers to deal with those appropriately and to find the end of the headers that signal the start of the "body" part. The function that splits up the response into headers is called Curl_http_readwrite_headers() and in situations where it can't find a single header in the buffer, it might end up leaving a pointer pointing into the buffer instead of to the start of the buffer which then later on may lead to an out of buffer read when code assumes that pointer points to a full buffer size worth of memory to use.
This could potentially lead to information leakage but most likely a crash/denial of service for applications if a server triggers this flaw.

AVG-699 libcurl-gnutls 7.59.0-1 7.60.0-1 Critical Fixed

AVG-698 libcurl-compat 7.59.0-1 7.60.0-1 Critical Fixed

AVG-697 lib32-libcurl-gnutls 7.59.0-1 7.60.0-1 Critical Fixed

AVG-696 lib32-libcurl-compat 7.59.0-1 7.60.0-1 Critical Fixed

AVG-695 lib32-curl 7.59.0-1 7.60.0-1 Critical Fixed

AVG-694 curl 7.59.0-2 7.60.0-1 Critical Fixed

18 May 2018 ASA-201805-18 AVG-699 libcurl-gnutls Critical multiple issues

18 May 2018 ASA-201805-17 AVG-698 libcurl-compat Critical multiple issues

18 May 2018 ASA-201805-16 AVG-697 lib32-libcurl-gnutls Critical multiple issues

18 May 2018 ASA-201805-15 AVG-696 lib32-libcurl-compat Critical multiple issues

18 May 2018 ASA-201805-14 AVG-695 lib32-curl Critical multiple issues

17 May 2018 ASA-201805-13 AVG-694 curl Critical multiple issues

https://curl.haxx.se/docs/adv_2018-b138.html
https://curl.haxx.se/CVE-2018-1000301.patch