Rapid7 Vulnerability & Exploit Database

Red Hat: CVE-2019-3822: CVE-2019-3822 curl: NTLMv2 type-3 header stack buffer overflow (Multiple Advisories)

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

Red Hat: CVE-2019-3822: CVE-2019-3822 curl: NTLMv2 type-3 header stack buffer overflow (Multiple Advisories)

Severity
8
CVSS
(AV:N/AC:L/Au:N/C:P/I:P/A:P)
Published
02/06/2019
Created
11/07/2019
Added
11/06/2019
Modified
12/15/2023

Description

libcurl versions from 7.36.0 to before 7.64.0 are vulnerable to a stack-based buffer overflow. The function creating an outgoing NTLM type-3 header (`lib/vauth/ntlm.c:Curl_auth_create_ntlm_type3_message()`), generates the request HTTP header contents based on previously received data. The check that exists to prevent the local buffer from getting overflowed is implemented wrongly (using unsigned math) and as such it does not prevent the overflow from happening. This output data can grow larger than the local buffer if very large 'nt response' data is extracted from a previous NTLMv2 header provided by the malicious or broken HTTP server. Such a 'large value' needs to be around 1000 bytes or more. The actual payload data copied to the target buffer comes from the NTLMv2 type-2 response header.

Solution(s)

  • redhat-upgrade-curl
  • redhat-upgrade-curl-debuginfo
  • redhat-upgrade-curl-debugsource
  • redhat-upgrade-curl-minimal-debuginfo
  • redhat-upgrade-libcurl
  • redhat-upgrade-libcurl-debuginfo
  • redhat-upgrade-libcurl-devel
  • redhat-upgrade-libcurl-minimal
  • redhat-upgrade-libcurl-minimal-debuginfo

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;