# CVE-2018-14618: curl: curl before version 7.61.1 is vulnerable to a buffer overrun in the NTLM authentication code

CVE-2018-14618 is fixed in 4 products on 1 platform, first by curl 7.58.0-2ubuntu3.3, released September 4, 2018. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2018-14618
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.1112
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 4, 2018

## 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.)

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | curl Ubuntu 18.04.6 LTS (bionic) | 7.58.0-2ubuntu3.3 | [curl 7.58.0-2ubuntu3.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-curl-7.58.0-2ubuntu3.3.md) | Sep 4, 2018 |
| Linux | libcurl3-gnutls Ubuntu 18.04.6 LTS (bionic) | 7.58.0-2ubuntu3.3 | [libcurl3-gnutls 7.58.0-2ubuntu3.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libcurl3-gnutls-7.58.0-2ubuntu3.3.md) | Sep 4, 2018 |
| Linux | libcurl3-nss Ubuntu 18.04.6 LTS (bionic) | 7.58.0-2ubuntu3.3 | [libcurl3-nss 7.58.0-2ubuntu3.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libcurl3-nss-7.58.0-2ubuntu3.3.md) | Sep 4, 2018 |
| Linux | libcurl4 Ubuntu 18.04.6 LTS (bionic) | 7.58.0-2ubuntu3.3 | [libcurl4 7.58.0-2ubuntu3.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libcurl4-7.58.0-2ubuntu3.3.md) | Sep 4, 2018 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
