Skip to content

CVE-2018-14618 curl before version 7.61.1 is vulnerable to a buffer overrun in the NTLM authentication code. The internal function Curl_ntlm_core_mk_nt_hash multiplies the length of the password by two (SUM) to figu...

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

Description

curl before version 7.61.1 is vulnerable to a buffer overrun in the NTLM authentication code. The internal function Curl_ntlm_core_mk_nt_hash multiplies the length of the password by two (SUM) to figure out how large temporary storage area to allocate from the heap. The length value is then subsequently used to iterate over the password and generate output into the allocated storage buffer. On systems with a 32 bit size_t, the math to calculate SUM triggers an integer overflow when the password length exceeds 2GB (2^31 bytes). This integer overflow usually causes a very small buffer to actually get allocated instead of the intended very huge one, making the use of that buffer end up in a heap buffer overflow. (This bug is almost identical to CVE-2017-8816.)

Affected products

ProductAffected versionsFixed in
debian/curl(Debian:12) < 7.62.0-1 7.62.0-1
debian/curl(Debian:13) < 7.62.0-1 7.62.0-1
debian/curl(Debian:14) < 7.62.0-1 7.62.0-1
haxx libcurl < 7.61.1 7.61.1
Canonical Ubuntu Linux = 12.04 No fix listed
Canonical Ubuntu Linux = 14.04 No fix listed
Canonical Ubuntu Linux = 16.04 No fix listed
Canonical Ubuntu Linux = 18.04 No fix listed
debian linux = 9.0 No fix listed
redhat enterprise linux = 6.0 No fix listed
redhat enterprise linux = 7.0 No fix listed
redhat enterprise linux = 7.4 No fix listed
redhat enterprise linux = 7.5 No fix listed
redhat enterprise linux = 7.6 No fix listed
alpine/curl(Alpine:v3.10) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.11) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.12) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.13) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.14) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.15) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.16) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.17) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.18) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.19) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.20) < 7.61.1-r0 7.61.1-r0
Show 10 more
ProductAffected versionsFixed in
alpine/curl(Alpine:v3.21) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.22) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.23) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.24) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.5) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.6) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.7) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.8) < 7.61.1-r0 7.61.1-r0
alpine/curl(Alpine:v3.9) < 7.61.1-r0 7.61.1-r0
[UNKNOWN] curl = 7.61.1 No fix listed

References