Skip to content

CVE-2019-3822 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_messag...

CriticalCVSS 9.8 EPSS 12.9%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
debian/curl(Debian:12) < 7.64.0-1 7.64.0-1
debian/curl(Debian:13) < 7.64.0-1 7.64.0-1
debian/curl(Debian:14) < 7.64.0-1 7.64.0-1
haxx libcurl >= 7.36.0, < 7.64.0 7.64.0
Canonical Ubuntu Linux = 14.04 No fix listed
Canonical Ubuntu Linux = 16.04 No fix listed
Canonical Ubuntu Linux = 18.04 No fix listed
Canonical Ubuntu Linux = 18.10 No fix listed
debian linux = 9.0 No fix listed
netapp active iq unified manager >= 7.3 No fix listed
netapp active iq unified manager >= 9.5 No fix listed
netapp clustered data ontap All versions No fix listed
netapp oncommand insight All versions No fix listed
netapp oncommand workflow automation All versions No fix listed
netapp snapcenter All versions No fix listed
Siemens sinema remote connect client <= 2.0 No fix listed
oracle communications operations monitor = 3.4 No fix listed
oracle communications operations monitor = 4.0 No fix listed
oracle enterprise manager ops center = 12.3.3 No fix listed
oracle enterprise manager ops center = 12.4.0 No fix listed
oracle http server = 12.2.1.3.0 No fix listed
oracle mysql server <= 5.7.26 No fix listed
oracle mysql server >= 5.7.27, <= 8.0.15 No fix listed
oracle secure global desktop = 5.4 No fix listed
oracle services tools bundle = 19.2 No fix listed
Show 21 more
ProductAffected versionsFixed in
redhat enterprise linux = 8.0 No fix listed
alpine/curl(Alpine:v3.10) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.11) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.12) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.13) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.14) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.15) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.16) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.17) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.18) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.19) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.20) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.21) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.22) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.23) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.24) < 7.64.0-r0 7.64.0-r0
alpine/curl(Alpine:v3.6) < 7.61.1-r2 7.61.1-r2
alpine/curl(Alpine:v3.7) < 7.61.1-r2 7.61.1-r2
alpine/curl(Alpine:v3.8) < 7.61.1-r2 7.61.1-r2
alpine/curl(Alpine:v3.9) < 7.64.0-r0 7.64.0-r0
The curl Project curl = 7.64.0 No fix listed

References