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...
- 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2018-14618 vendor-advisory
- 1041605 third-party-advisory vdb-entry
- RHSA-2018:3558 third-party-advisory vendor-advisory
- RHSA-2019:1880 vendor-advisory
- bugzilla.redhat.com issue-tracking
- cert-portal.siemens.com
- curl.haxx.se vendor-advisory
- psirt.global.sonicwall.com third-party-advisory
- GLSA-201903-03 third-party-advisory vendor-advisory
- USN-3765-1 third-party-advisory vendor-advisory
- USN-3765-2 third-party-advisory vendor-advisory
- DSA-4286 third-party-advisory vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking