CVE-2018-16839
Description
Curl versions 7.33.0 to 7.61.1 on 32-bit systems are vulnerable to a heap buffer overflow in SASL authentication via integer overflow, leading to denial of service.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Curl versions 7.33.0 to 7.61.1 on 32-bit systems are vulnerable to a heap buffer overflow in SASL authentication via integer overflow, leading to denial of service.
Vulnerability
Curl versions 7.33.0 through 7.61.1 on 32-bit systems contain an integer overflow in the internal function Curl_auth_create_plain_message (also known as Curl_sasl_create_plain_message). When constructing a SASL PLAIN authentication message, the function fails to properly validate the lengths of the username and password. On systems with a 32-bit size_t, the buffer size calculation overflows if the username exceeds 1 GB and the password is near 2 GB, resulting in allocation of a tiny buffer and subsequent heap buffer overflow [2][3]. This bug is similar to CVE-2018-14618 [3]. The affected code path is only reachable when using POP3(S), IMAP(S), or SMTP(S) protocols [3].
Exploitation
An attacker must provide a username longer than 1 GB and a password close to 2 GB to trigger the integer overflow. This requires control over the credentials passed to libcurl, for example via a crafted URL or command-line argument. The vulnerability is only exploitable on 32-bit systems and only when the SASL PLAIN mechanism is used with POP3, IMAP, or SMTP [3]. No authentication is required from the attacker beyond the ability to supply the oversized input.
Impact
Successful exploitation causes a heap buffer overflow, typically resulting in a crash (denial of service). The Ubuntu advisory notes that arbitrary code execution may be possible under certain conditions [1], though the curl project rates the severity as Low [3]. The overflow corrupts heap memory, potentially allowing an attacker to overwrite adjacent data structures.
Mitigation
The vulnerability is fixed in curl version 7.62.0 [3]. Users should upgrade to this version or later. Patches are available for earlier versions [3]. As a workaround, restrict the length of usernames passed to libcurl to well below 1 GB. Ubuntu has released updated packages in USN-3805-1 [1], and Gentoo provides an updated package in GLSA 201903-03 [4]. No workaround is available for systems that cannot be upgraded.
AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
20- osv-coords18 versionspkg:rpm/opensuse/curl&distro=openSUSE%20Tumbleweedpkg:rpm/suse/curl&distro=SUSE%20Enterprise%20Storage%204pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP4pkg:rpm/suse/curl&distro=SUSE%20OpenStack%20Cloud%207
< 7.79.1-1.1+ 17 more
- (no CPE)range: < 7.79.1-1.1
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.60.0-4.3.1
- (no CPE)range: < 7.60.0-3.14.3
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.60.0-4.3.1
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.60.0-4.3.1
- (no CPE)range: < 7.37.0-37.37.1
- (no CPE)range: < 7.60.0-4.3.1
- (no CPE)range: < 7.37.0-37.37.1
- The Curl Project/curl:v5Range: from 7.33.0 to 7.61.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
9- security.gentoo.org/glsa/201903-03mitrevendor-advisoryx_refsource_GENTOO
- usn.ubuntu.com/3805-1/mitrevendor-advisoryx_refsource_UBUNTU
- www.debian.org/security/2018/dsa-4331mitrevendor-advisoryx_refsource_DEBIAN
- www.securitytracker.com/id/1042012mitrevdb-entryx_refsource_SECTRACK
- bugzilla.redhat.com/show_bug.cgimitrex_refsource_CONFIRM
- curl.haxx.se/docs/CVE-2018-16839.htmlmitrex_refsource_MISC
- github.com/curl/curl/commit/f3a24d7916b9173c69a3e0ee790102993833d6c5mitrex_refsource_CONFIRM
- lists.apache.org/thread.html/8338a0f605bdbb3a6098bb76f666a95fc2b2f53f37fa1ecc89f1146f%40%3Cdevnull.infra.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.debian.org/debian-lts-announce/2018/11/msg00005.htmlmitremailing-listx_refsource_MLIST
News mentions
0No linked articles in our index yet.