CVE-2019-3822: Buffer Overflow
Last updated 25 August 2025
Other sources
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:Curlauthcreatentlmtype3message()), 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.
Bug introduced by:
https://github.com/curl/curl/commit/86724581b6c
— Red Hat
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:Curlauthcreatentlmtype3message()), 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.
— Launchpad
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is CVE-2019-3822?
CVE-2019-3822 is a vulnerability in libcurl versions from 7.36.0 to before 7.64.0 that allows a stack-based buffer overflow.
What is the severity of CVE-2019-3822?
CVE-2019-3822 has a severity rating of 9.8 (Critical).
How does CVE-2019-3822 affect software?
CVE-2019-3822 affects the curl package in Debian, Red Hat, Canonical Ubuntu Linux, NetApp, Siemens, Oracle, and other software.
How can I fix CVE-2019-3822?
To fix CVE-2019-3822, upgrade to version 7.64.0 or later of the libcurl package.
Where can I find more information about CVE-2019-3822?
You can find more information about CVE-2019-3822 at the following references: - [CVE-2019-3822](https://curl.haxx.se/docs/CVE-2019-3822.html) - [CVE-2019-3822 Git Commit 1](https://github.com/curl/curl/commit/50c9484278c63b958655a717844f0721263939cc) - [CVE-2019-3822 Git Commit 2](https://github.com/curl/curl/commit/86724581b6c02d160b52f817550cfdfc9c93af62)