CVE-2018-14618 Integer overflow in curl

High 7.5 Published Updated

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

Weakness: CWE-190, CWE-131, CWE-122

Which versions are affected by CVE-2018-14618?

It affects 4 products.

Linux distribution packages (25)
curl Red Hat:enterprise_linux:7::clientAll versions0:7.29.0-51.el7_6.3
curl-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:7.29.0-51.el7_6.3
libcurl Red Hat:enterprise_linux:7::clientAll versions0:7.29.0-51.el7_6.3
libcurl-devel Red Hat:enterprise_linux:7::clientAll versions0:7.29.0-51.el7_6.3
curl Red Hat:enterprise_linux:7::computenodeAll versions0:7.29.0-51.el7_6.3
curl-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:7.29.0-51.el7_6.3
libcurl Red Hat:enterprise_linux:7::computenodeAll versions0:7.29.0-51.el7_6.3
libcurl-devel Red Hat:enterprise_linux:7::computenodeAll versions0:7.29.0-51.el7_6.3
curl Red Hat:enterprise_linux:7::serverAll versions0:7.29.0-51.el7_6.3
curl-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:7.29.0-51.el7_6.3
libcurl Red Hat:enterprise_linux:7::serverAll versions0:7.29.0-51.el7_6.3
libcurl-devel Red Hat:enterprise_linux:7::serverAll versions0:7.29.0-51.el7_6.3
curl Red Hat:enterprise_linux:7::workstationAll versions0:7.29.0-51.el7_6.3
curl-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:7.29.0-51.el7_6.3
libcurl Red Hat:enterprise_linux:7::workstationAll versions0:7.29.0-51.el7_6.3
libcurl-devel Red Hat:enterprise_linux:7::workstationAll versions0:7.29.0-51.el7_6.3
curl SUSE:Linux Enterprise Desktop 12 SP3All versions7.37.0-37.26.1
curl SUSE:Linux Enterprise Module for Basesystem 15All versions7.60.0-3.9.1
curl SUSE:Linux Enterprise Server 11 SP4All versions7.37.0-70.33.1
curl-openssl1 SUSE:Linux Enterprise Server 11-SECURITYAll versions7.37.0-70.33.1
curl SUSE:Linux Enterprise Server 12 SP3All versions7.37.0-37.26.1
curl SUSE:Linux Enterprise Server for SAP Applications 11 SP4All versions7.37.0-70.33.1
curl SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions7.37.0-37.26.1
curl SUSE:Linux Enterprise Software Development Kit 11 SP4All versions7.37.0-70.33.1
curl SUSE:Linux Enterprise Software Development Kit 12 SP3All versions7.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.

All Canonical Ubuntu Linux vulnerabilities

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.

Is CVE-2018-14618 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free