CVE-2019-3822
Description
libcurl versions 7.36.0 to 7.63.0 contain a stack buffer overflow in NTLMv2 type-3 header generation, potentially allowing remote code execution.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
libcurl versions 7.36.0 to 7.63.0 contain a stack buffer overflow in NTLMv2 type-3 header generation, potentially allowing remote code execution.
Vulnerability
A stack-based buffer overflow exists in lib/vauth/ntlm.c:Curl_auth_create_ntlm_type3_message() in libcurl versions 7.36.0 through 7.63.0 [4]. The function constructs an NTLM type-3 HTTP header based on data from a previous NTLMv2 type-2 response. The bounds check intended to prevent overflow uses unsigned arithmetic incorrectly, so it fails when the nt response field exceeds approximately 1000 bytes. This allows a malicious or broken HTTP server to supply a crafted type-2 header that causes the type-3 output to overflow the local stack buffer [4].
Exploitation
An attacker must control an HTTP server that the victim's libcurl-based client connects to and that negotiates NTLM authentication (e.g., via --ntlm or automatic selection). No prior authentication is required. The attacker sends a crafted NTLMv2 type-2 response containing a large nt response value (≥1000 bytes). When libcurl processes this response to generate the type-3 header, the flawed unsigned check allows copying more data than the allocated stack buffer, triggering the overflow [2][4].
Impact
Successful exploitation can cause a stack buffer overflow, leading to a denial of service (crash) or potentially arbitrary code execution with the privileges of the process using libcurl [3][4]. The impact is rated High (CVSS 8.8) [4].
Mitigation
The vulnerability is fixed in curl version 7.64.0, released on February 6, 2019 [4]. Users should upgrade to this version or apply the provided patch. As a workaround, disable NTLM authentication entirely. Red Hat Enterprise Linux 8 ships with the fixed version curl-7.61.1-11.el8 [1]. Ubuntu 16.04 LTS, 18.04 LTS, and 18.10 received updates via USN-3882-1 [3]. No workaround other than disabling NTLM is available for unpatched installations.
AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
22- osv-coords20 versionspkg:rpm/opensuse/curl&distro=openSUSE%20Leap%2015.0pkg:rpm/opensuse/curl&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/curl-mini&distro=openSUSE%20Leap%2015.0pkg:rpm/suse/curl&distro=SUSE%20Enterprise%20Storage%204pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP4pkg:rpm/suse/curl&distro=SUSE%20OpenStack%20Cloud%207
< 7.60.0-lp150.2.18.1+ 19 more
- (no CPE)range: < 7.60.0-lp150.2.18.1
- (no CPE)range: < 7.79.1-1.1
- (no CPE)range: < 7.60.0-lp150.2.18.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.60.0-4.3.1
- (no CPE)range: < 7.60.0-3.17.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.60.0-4.3.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.60.0-4.3.1
- (no CPE)range: < 7.37.0-37.34.1
- (no CPE)range: < 7.60.0-4.3.1
- (no CPE)range: < 7.37.0-37.34.1
- The curl Project/curlv5Range: 7.64.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
15- access.redhat.com/errata/RHSA-2019:3701mitrevendor-advisoryx_refsource_REDHAT
- security.gentoo.org/glsa/201903-03mitrevendor-advisoryx_refsource_GENTOO
- usn.ubuntu.com/3882-1/mitrevendor-advisoryx_refsource_UBUNTU
- www.debian.org/security/2019/dsa-4386mitrevendor-advisoryx_refsource_DEBIAN
- www.securityfocus.com/bid/106950mitrevdb-entryx_refsource_BID
- bugzilla.redhat.com/show_bug.cgimitrex_refsource_CONFIRM
- cert-portal.siemens.com/productcert/pdf/ssa-436177.pdfmitrex_refsource_CONFIRM
- curl.haxx.se/docs/CVE-2019-3822.htmlmitrex_refsource_MISC
- lists.apache.org/thread.html/8338a0f605bdbb3a6098bb76f666a95fc2b2f53f37fa1ecc89f1146f%40%3Cdevnull.infra.apache.org%3Emitremailing-listx_refsource_MLIST
- security.netapp.com/advisory/ntap-20190315-0001/mitrex_refsource_CONFIRM
- security.netapp.com/advisory/ntap-20190719-0004/mitrex_refsource_CONFIRM
- support.f5.com/csp/article/K84141449mitrex_refsource_CONFIRM
- support.f5.com/csp/article/K84141449mitrex_refsource_CONFIRM
- www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.htmlmitrex_refsource_MISC
- www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.htmlmitrex_refsource_MISC
News mentions
0No linked articles in our index yet.