Every CVE Search/ Get API key

CVE-2018-0500

Curl_smtp_escape_eob in lib/smtp.c in curl 7.54.1 to and including curl 7.60.0 has a heap-based...

9.8 CriticalFix available

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

6.35%Up 4.9 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

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

Record
CVE-2018-0500
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

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

Record
CVE-2018-0500
Updated
2026-11-02
EUVDEUVD-2018-1322 No score

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

Record
EUVD-2018-1322
Updated
2026-11-03
GitHub AdvisoriesGHSA-rg4c-f6cj-x9w8 9.8

Curl_smtp_escape_eob in lib/smtp.c in curl 7.54.1 to and including curl 7.60.0 has a heap-based...

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

Record
GHSA-rg4c-f6cj-x9w8
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-787
Updated
2026-11-02
OSVALPINE-CVE-2018-0500 9.8

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

Record
ALPINE-CVE-2018-0500
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVBELL-CVE-2018-0500 9.8

CVE-2018-0500 does not affect BellSoft software

Record
BELL-CVE-2018-0500
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 8 moreShow less
OSV 9.8

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

Record
CVE-2018-0500
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-0500 9.8

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

Record
DEBIAN-CVE-2018-0500
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2018-0500 9.8

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

Record
UBUNTU-CVE-2018-0500
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVCURL-CVE-2018-0500 No score

SMTP send heap buffer overflow

curl might overflow a heap based memory buffer when sending data over SMTP and using a reduced read buffer.

When sending data over SMTP, curl allocates a separate "scratch area" on the heap to be able to escape the uploaded data properly if the uploaded data contains data that requires it.

The size of this temporary scratch area was mistakenly made to be 2 * sizeof(download_buffer) when it should have been made 2 * sizeof(upload_buffer).

The upload and the download buffer sizes are identically sized by default (16KB) but since version 7.54.1, curl can resize the download buffer into a smaller buffer (as well as larger). If the download buffer size is set to a value smaller than 10923, the Curl_smtp_escape_eob() function might overflow the scratch buffer when sending contents of sufficient size and contents.

The curl command line tool lowers the buffer size when --limit-rate is set to a value smaller than 16KB.

Record
CURL-CVE-2018-0500
Updated
2026-11-02
OSVMGASA-2018-0423 No score

Updated curl packages fix security vulnerabilities

Updated curl packages fix security vulnerabilities:

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 (CVE-2018-0500).

Zhaoyang Wu discovered that cURL, an URL transfer library, contains a buffer overflow in the NTLM authentication code triggered by passwords that exceed 2GB in length on 32bit systems (CVE-2018-14618).

Phan Thanh discovered that curl incorrectly handled certain FTP paths. An attacker could use this to cause a denial of service or possibly execute arbitrary code (CVE-2018-1000120).

Dario Weisser discovered that curl incorrectly handled certain LDAP URLs. An attacker could possibly use this issue to cause a denial of service (CVE-2018-1000121).

Max Dymond discovered that curl incorrectly handled certain RTSP data. An attacker could possibly use this to cause a denial of service or even to get access to sensitive data (CVE-2018-1000122).

A heap-based buffer overflow can happen when closing down an FTP connection with very long server command replies. When doing FTP transfers, curl keeps a spare "closure handle" around internally that will be used when an FTP connection gets shut down since the original curl easy handle is then already removed. FTP server response data that gets cached from the original transfer might then be larger than the default buffer size (16 KB) allocated in the "closure handle", which can lead to a buffer overwrite. The contents and size of that overwrite is controllable by the server (CVE-2018-1000300).

curl can be tricked into reading data beyond the end of a heap based buffer used to store downloaded content. When servers send RTSP responses back to curl, the data starts out with a set of headers. curl parses that data to separate it into a number of headers to deal with those appropriately and to find the end of the headers that signal the start of the "body" part. The function that splits up the response into headers is called "Curl_http_readwrite_headers()" and in situations where it can't find a single header in the buffer, it might end up leaving a pointer pointing into the buffer instead of to the start of the buffer which then later on may lead to an out of buffer read when code assumes that pointer points to a full buffer size worth of memory to use. This could potentially lead to information leakage but most likely a crash/denial of service for applications if a server triggers this flaw (CVE-2018-1000301).

Record
MGASA-2018-0423
Updated
2026-11-02
OSVopenSUSE-SU-2024:10582-1 No score

curl-7.79.1-1.1 on GA media

These are all security issues fixed in the curl-7.79.1-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10582-1
Updated
2026-11-02
OSVSUSE-SU-2018:2423-1 No score

Security update for curl

This update for curl fixes the following issues:

Security issue fixed:

  • CVE-2018-0500: Fix a SMTP send heap buffer overflow (bsc#1099793).
Record
SUSE-SU-2018:2423-1
Updated
2026-11-02
OSVUSN-3710-1 No score

curl vulnerability

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.

Record
USN-3710-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
curl
Alpine:v3.10
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.11
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.12
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.13
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.14
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.15
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.16
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.17
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.18
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.19
7.54.1 up to 7.61.0-r0
7.61.0-r0
Show 17 moreShow less
Affected packages
PackageAffectedFixed
curl
Alpine:v3.20
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.21
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.22
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.23
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.24
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.5
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.6
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.7
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.8
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Alpine:v3.9
7.54.1 up to 7.61.0-r0
7.61.0-r0
curl
Debian:12
before 7.61.0-1
7.61.0-1
curl
Debian:13
before 7.61.0-1
7.61.0-1
curl
Debian:14
before 7.61.0-1
7.61.0-1
curl
Mageia:6
From an advisory covering 7 CVEs
before 7.54.1-2.7.mga6
7.54.1-2.7.mga6
curl
SUSE:Linux Enterprise Module for Basesystem 15
before 7.60.0-3.6.4
7.60.0-3.6.4
curl
Ubuntu:18.04:LTS
before 7.58.0-2ubuntu3.2, plus listed versions
7.55.1-1ubuntu27.55.1-1ubuntu2.17.57.0-1ubuntu17.58.0-2ubuntu17.58.0-2ubuntu27.58.0-2ubuntu37.58.0-2ubuntu3.1
7.58.0-2ubuntu3.2
curl
openSUSE:Tumbleweed
From an advisory covering 48 CVEs
before 7.79.1-1.1
7.79.1-1.1

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-0500 is a critical vulnerability (CVSS 9.8) in Haxx Curl, published July 11, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 6.35%, the 93rd percentile. Fixed in curl 7.61.0-r0.

References

Show 69 moreShow less
MoveEnter Open