CVE-2019-3822 (retired)

Priority
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.
Notes
 mdeslaur> affects libcurl 7.36.0 to and including 7.63.0
Assigned-to
mdeslaur
Package
Source: curl (LP Ubuntu Debian)
Upstream:released (7.64.0)
Ubuntu 12.04 ESM (Precise Pangolin):not-affected (code not present)
Ubuntu 14.04 LTS (Trusty Tahr):not-affected (code not present)
Ubuntu 16.04 LTS (Xenial Xerus):released (7.47.0-1ubuntu2.12)
Ubuntu 18.04 LTS (Bionic Beaver):released (7.58.0-2ubuntu3.6)
Ubuntu 18.10 (Cosmic Cuttlefish):released (7.61.0-1ubuntu2.3)
Ubuntu 19.04 (Disco Dingo):released (7.64.0-1ubuntu1)
More Information

Updated: 2019-03-26 12:27:52 UTC (commit ccdecfcf0fead22bd291e5f4ea745a46872dcb15)