Vulnerabilities / CVE-2018-14618

critical

CVE-2018-14618

curl: NTLM password overflow via integer overflow

Published Modified CWE 122, 131, 190
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.5CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Ubuntu (medium), Red Hat (low), Amazon (low), Oracle (low).

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 packages and fixed versions

SourcePackageFixed in
Photon OS 1.0curl7.59.0-5.ph1
Photon OS 2.0curl7.59.0-4.ph2
alpine 3.10curl7.61.1-r0
alpine 3.11curl7.61.1-r0
alpine 3.12curl7.61.1-r0
alpine 3.13curl7.61.1-r0
alpine 3.14curl7.61.1-r0
alpine 3.15curl7.61.1-r0
alpine 3.16curl7.61.1-r0
alpine 3.17curl7.61.1-r0
alpine 3.18curl7.61.1-r0
alpine 3.19curl7.61.1-r0
Show all 56 entries from 43 sources
SourcePackageFixed in
Photon OS 1.0curl7.59.0-5.ph1
Photon OS 2.0curl7.59.0-4.ph2
alpine 3.10curl7.61.1-r0
alpine 3.11curl7.61.1-r0
alpine 3.12curl7.61.1-r0
alpine 3.13curl7.61.1-r0
alpine 3.14curl7.61.1-r0
alpine 3.15curl7.61.1-r0
alpine 3.16curl7.61.1-r0
alpine 3.17curl7.61.1-r0
alpine 3.18curl7.61.1-r0
alpine 3.19curl7.61.1-r0
alpine 3.20curl7.61.1-r0
alpine 3.21curl7.61.1-r0
alpine 3.22curl7.61.1-r0
alpine 3.23curl7.61.1-r0
alpine 3.24curl7.61.1-r0
alpine 3.5curl7.61.1-r0
alpine 3.6curl7.61.1-r0
alpine 3.7curl7.61.1-r0
alpine 3.8curl7.61.1-r0
alpine 3.9curl7.61.1-r0
alpine edgecurl7.61.1-r0
amazon linux 1curl7.53.1-16.85.amzn1
amazon linux 1curl-debuginfo7.53.1-16.85.amzn1
amazon linux 1libcurl7.53.1-16.85.amzn1
amazon linux 1libcurl-devel7.53.1-16.85.amzn1
amazon linux 2curl7.55.1-12.amzn2.0.7
amazon linux 2curl-debuginfo7.55.1-12.amzn2.0.7
amazon linux 2libcurl7.55.1-12.amzn2.0.7
amazon linux 2libcurl-devel7.55.1-12.amzn2.0.7
debian 11curl7.62.0-1
debian 12curl7.62.0-1
debian 13curl7.62.0-1
debian 14curl7.62.0-1
debian 8curl7.38.0-4+deb8u12
debian 9curl7.52.1-5+deb9u7
echocurl7.62.0-1
Oracle Linux 7curl7.29.0-51.0.1.el7_6.3
Oracle Linux 7libcurl7.29.0-51.0.1.el7_6.3
Oracle Linux 7libcurl-devel7.29.0-51.0.1.el7_6.3
Red Hatcurlno fix listed
Red Hatlibcurlno fix listed
Red Hatlibcurl-develno fix listed
Red Hatrh-dotnet21-curlno fix listed
Red Hatrh-dotnet21-libcurlno fix listed
Red Hatrh-dotnet21-libcurl-develno fix listed
root.io debian 11rootio-curl7.62.0-1
root.io debian 12rootio-curl7.62.0-1
root.io debian 13rootio-curl7.62.0-1
ubuntu 14.04curl7.35.0-1ubuntu2.17
ubuntu 14.04-ESMcurl7.35.0-1ubuntu2.17
ubuntu 16.04curl7.47.0-1ubuntu2.9
ubuntu 16.04-ESMcurl7.47.0-1ubuntu2.9
ubuntu 18.04curl7.58.0-2ubuntu3.3
ubuntu 18.04-ESMcurl7.58.0-2ubuntu3.3

References

All 19 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.