ID CVE-2018-0500
Summary Curl_smtp_escape_eob in lib/smtp.c in curl 7.54.1 to and including curl 7.60.0 has a heap-based buffer overflow that might be exploitable by an attacker who can control the data that curl transmits over SMTP with certain settings (i.e., use of a nonstandard --limit-rate argument or CURLOPT_BUFFERSIZE value).
References
Vulnerable Configurations
  • Haxx Curl 7.54.1
    cpe:2.3:a:haxx:curl:7.54.1
  • Haxx Curl 7.55.0
    cpe:2.3:a:haxx:curl:7.55.0
  • Haxx Curl 7.55.1
    cpe:2.3:a:haxx:curl:7.55.1
  • Haxx Curl 7.56.0
    cpe:2.3:a:haxx:curl:7.56.0
  • Haxx Curl 7.56.1
    cpe:2.3:a:haxx:curl:7.56.1
  • Haxx Curl 7.57.0
    cpe:2.3:a:haxx:curl:7.57.0
  • Canonical Ubuntu Linux 17.10
    cpe:2.3:o:canonical:ubuntu_linux:17.10
  • cpe:2.3:o:canonical:ubuntu_linux:18.04:-:-:-:lts
    cpe:2.3:o:canonical:ubuntu_linux:18.04:-:-:-:lts
CVSS
Base: 7.5
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
nessus via4
  • NASL family Amazon Linux Local Security Checks
    NASL id AL2_ALAS-2018-1052.NASL
    description A heap-based buffer overflow has been found in the Curl_smtp_escape_eob() function of curl. An attacker could exploit this by convincing a user to use curl to upload data over SMTP with a reduced buffer to cause a crash or corrupt memory.(CVE-2018-0500)
    last seen 2018-09-14
    modified 2018-09-12
    plugin id 111606
    published 2018-08-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=111606
    title Amazon Linux 2 : curl (ALAS-2018-1052)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2018-908.NASL
    description This update for curl fixes the following issues : Security issue fixed : - CVE-2018-0500: Fix a SMTP send heap buffer overflow (bsc#1099793). This update was imported from the SUSE:SLE-15:Update update project.
    last seen 2018-09-14
    modified 2018-09-12
    plugin id 112007
    published 2018-08-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=112007
    title openSUSE Security Update : curl (openSUSE-2018-908)
  • NASL family PhotonOS Local Security Checks
    NASL id PHOTONOS_PHSA-2018-2_0-0096.NASL
    description An update of 'curl' packages of Photon OS has been released.
    last seen 2018-09-22
    modified 2018-09-21
    plugin id 117638
    published 2018-09-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=117638
    title Photon OS 2.0: Curl PHSA-2018-2.0-0096
  • NASL family Slackware Local Security Checks
    NASL id SLACKWARE_SSA_2018-192-02.NASL
    description New curl packages are available for Slackware 14.0, 14.1, 14.2, and -current to fix a security issue.
    last seen 2018-09-14
    modified 2018-09-12
    plugin id 111036
    published 2018-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=111036
    title Slackware 14.0 / 14.1 / 14.2 / current : curl (SSA:2018-192-02)
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_3849E28F869311E896109C5C8E75236A.NASL
    description Peter Wu reports : curl might overflow a heap based memory buffer when sending data over SMTP and using a reduced read buffer.
    last seen 2018-11-13
    modified 2018-11-10
    plugin id 111405
    published 2018-07-30
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=111405
    title FreeBSD : curl -- SMTP send heap buffer overflow (3849e28f-8693-11e8-9610-9c5c8e75236a)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201807-04.NASL
    description The remote host is affected by the vulnerability described in GLSA-201807-04 (cURL:Heap-based Buffer Overflow) A heap-based buffer overflow was discovered in cURL’s Curl_smtp_escape_eob() function. Impact : An attacker could cause a Denial of Service condition or execute arbitrary code via SMTP connections. Workaround : There is no known workaround at this time.
    last seen 2018-09-14
    modified 2018-09-12
    plugin id 111412
    published 2018-07-30
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=111412
    title GLSA-201807-04 : cURL:Heap-based Buffer Overflow
  • NASL family PhotonOS Local Security Checks
    NASL id PHOTONOS_PHSA-2018-1_0-0186.NASL
    description An update of 'curl' packages of Photon OS has been released.
    last seen 2018-09-22
    modified 2018-09-21
    plugin id 117637
    published 2018-09-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=117637
    title Photon OS 1.0: Curl PHSA-2018-1.0-0186
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-3710-1.NASL
    description Peter Wu discovered that curl incorrectly handled certain SMTP buffers. A remote attacker could use this issue to cause curl to crash, resulting in a denial of service, or possibly execute arbitrary code. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2018-12-02
    modified 2018-12-01
    plugin id 111038
    published 2018-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=111038
    title Ubuntu 17.10 / 18.04 LTS : curl vulnerability (USN-3710-1)
redhat via4
advisories
rhsa
id RHSA-2018:2486
refmap via4
confirm
gentoo GLSA-201807-04
sectrack 1041280
ubuntu USN-3710-1
Last major update 11-07-2018 - 09:29
Published 11-07-2018 - 09:29
Last modified 21-10-2018 - 06:29
Back to Top