CVE-2018-14618 Integer overflow in curl
An integer overflow in curl's NTLM authentication allows heap buffer overflows, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2018-14618?
CVE-2018-14618 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 5 Sep 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.)
Which versions are affected by CVE-2018-14618?
It affects 4 products.
Linux distribution packages (25)
curl Red Hat:enterprise_linux:7::client | All versions | 0:7.29.0-51.el7_6.3 |
curl-debuginfo Red Hat:enterprise_linux:7::client | All versions | 0:7.29.0-51.el7_6.3 |
libcurl Red Hat:enterprise_linux:7::client | All versions | 0:7.29.0-51.el7_6.3 |
libcurl-devel Red Hat:enterprise_linux:7::client | All versions | 0:7.29.0-51.el7_6.3 |
curl Red Hat:enterprise_linux:7::computenode | All versions | 0:7.29.0-51.el7_6.3 |
curl-debuginfo Red Hat:enterprise_linux:7::computenode | All versions | 0:7.29.0-51.el7_6.3 |
libcurl Red Hat:enterprise_linux:7::computenode | All versions | 0:7.29.0-51.el7_6.3 |
libcurl-devel Red Hat:enterprise_linux:7::computenode | All versions | 0:7.29.0-51.el7_6.3 |
curl Red Hat:enterprise_linux:7::server | All versions | 0:7.29.0-51.el7_6.3 |
curl-debuginfo Red Hat:enterprise_linux:7::server | All versions | 0:7.29.0-51.el7_6.3 |
libcurl Red Hat:enterprise_linux:7::server | All versions | 0:7.29.0-51.el7_6.3 |
libcurl-devel Red Hat:enterprise_linux:7::server | All versions | 0:7.29.0-51.el7_6.3 |
curl Red Hat:enterprise_linux:7::workstation | All versions | 0:7.29.0-51.el7_6.3 |
curl-debuginfo Red Hat:enterprise_linux:7::workstation | All versions | 0:7.29.0-51.el7_6.3 |
libcurl Red Hat:enterprise_linux:7::workstation | All versions | 0:7.29.0-51.el7_6.3 |
libcurl-devel Red Hat:enterprise_linux:7::workstation | All versions | 0:7.29.0-51.el7_6.3 |
curl SUSE:Linux Enterprise Desktop 12 SP3 | All versions | 7.37.0-37.26.1 |
curl SUSE:Linux Enterprise Module for Basesystem 15 | All versions | 7.60.0-3.9.1 |
curl SUSE:Linux Enterprise Server 11 SP4 | All versions | 7.37.0-70.33.1 |
curl-openssl1 SUSE:Linux Enterprise Server 11-SECURITY | All versions | 7.37.0-70.33.1 |
curl SUSE:Linux Enterprise Server 12 SP3 | All versions | 7.37.0-37.26.1 |
curl SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | All versions | 7.37.0-70.33.1 |
curl SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | All versions | 7.37.0-37.26.1 |
curl SUSE:Linux Enterprise Software Development Kit 11 SP4 | All versions | 7.37.0-70.33.1 |
curl SUSE:Linux Enterprise Software Development Kit 12 SP3 | All versions | 7.37.0-37.26.1 |
Products include Canonical Ubuntu Linux, Debian Debian Linux, Haxx Libcurl, Redhat Enterprise Linux.
How do I fix CVE-2018-14618?
Upgrade to a fixed version.
Is CVE-2018-14618 being exploited?
There is no known exploitation of CVE-2018-14618 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as ALPINE-CVE-2018-14618, CLEANSTART-2026-RL06903, CURL-CVE-2018-14618, DEBIAN-CVE-2018-14618, DLA-1498-1, DSA-4286-1 and 7 more.