VYPR
Unrated severityNVD Advisory· Published Oct 31, 2018· Updated Apr 15, 2026

CVE-2018-16839

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

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

9

News mentions

0

No linked articles in our index yet.