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...
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
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 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV: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 Critical
CVSS: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 Critical
CVSS: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 Critical
CVSS: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 Critical
CVSS: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 Critical
CVSS: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 Critical
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
curlAlpine:v3.10 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.11 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.12 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.13 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.14 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.15 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.16 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.17 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.18 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.19 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
curlAlpine:v3.20 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.21 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.22 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.23 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.24 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.5 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.6 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.7 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.8 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlAlpine:v3.9 |
7.54.1 up to 7.61.0-r0 | 7.61.0-r0 |
curlDebian:12 |
before 7.61.0-1 | 7.61.0-1 |
curlDebian:13 |
before 7.61.0-1 | 7.61.0-1 |
curlDebian:14 |
before 7.61.0-1 | 7.61.0-1 |
curlMageia:6 From an advisory covering 7 CVEs |
before 7.54.1-2.7.mga6 | 7.54.1-2.7.mga6 |
curlSUSE:Linux Enterprise Module for Basesystem 15 |
before 7.60.0-3.6.4 | 7.60.0-3.6.4 |
curlUbuntu: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 |
curlopenSUSE:Tumbleweed From an advisory covering 48 CVEs |
before 7.79.1-1.1 | 7.79.1-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE 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
securitytracker.com/id/1041280
github.com/curl/curl/commit/ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628
curl.haxx.se/docs/adv_2018-70a2.html
security.gentoo.org/glsa/201807-04
access.redhat.com/errata/RHSA-2018:2486
usn.ubuntu.com/3710-1
Show 69 moreShow less
nvd.nist.gov/vuln/detail/CVE-2018-0500
github.com/advisories/GHSA-rg4c-f6cj-x9w8
security.alpinelinux.org/vuln/CVE-2018-0500
docs.bell-sw.com/security/cves/CVE-2018-0500
security-tracker.debian.org/tracker/CVE-2018-0500
advisories.mageia.org/MGASA-2018-0423.html
bugs.mageia.org/show_bug.cgi?id=22772
curl.haxx.se/docs/adv_2018-9cd6.html
curl.haxx.se/docs/adv_2018-97a2.html
curl.haxx.se/docs/adv_2018-b047.html
curl.haxx.se/docs/adv_2018-82c2.html
curl.haxx.se/docs/adv_2018-b138.html
curl.haxx.se/docs/CVE-2018-14618.html
usn.ubuntu.com/3598-1
lists.fedoraproject.org/archives/list/[email protected]/thread/DOHQJ7DDUE5U4L6FHSUVPFQ7TAZLWSMI
debian.org/security/2018/dsa-4286
suse.com/support/update/announcement/2018/suse-su-20182423-1
bugzilla.suse.com/1099793
suse.com/security/cve/CVE-2018-0500
ubuntu.com/security/CVE-2018-0500
ubuntu.com/security/notices/USN-3710-1
cve.org/CVERecord?id=CVE-2018-0500
suse.com/security/cve/CVE-2006-1061
suse.com/security/cve/CVE-2016-9586
suse.com/security/cve/CVE-2016-9594
suse.com/security/cve/CVE-2017-1000099
suse.com/security/cve/CVE-2017-1000100
suse.com/security/cve/CVE-2017-1000101
suse.com/security/cve/CVE-2017-1000254
suse.com/security/cve/CVE-2017-1000257
suse.com/security/cve/CVE-2017-2629
suse.com/security/cve/CVE-2017-7468
suse.com/security/cve/CVE-2017-8816
suse.com/security/cve/CVE-2017-8817
suse.com/security/cve/CVE-2017-8818
suse.com/security/cve/CVE-2017-9502
suse.com/security/cve/CVE-2018-1000005
suse.com/security/cve/CVE-2018-1000120
suse.com/security/cve/CVE-2018-1000122
suse.com/security/cve/CVE-2018-1000300
suse.com/security/cve/CVE-2018-1000301
suse.com/security/cve/CVE-2018-14618
suse.com/security/cve/CVE-2018-16839
suse.com/security/cve/CVE-2018-16840
suse.com/security/cve/CVE-2018-16842
suse.com/security/cve/CVE-2018-16890
suse.com/security/cve/CVE-2019-15601
suse.com/security/cve/CVE-2019-3822
suse.com/security/cve/CVE-2019-3823
suse.com/security/cve/CVE-2019-5435
suse.com/security/cve/CVE-2019-5436
suse.com/security/cve/CVE-2019-5481
suse.com/security/cve/CVE-2019-5482
suse.com/security/cve/CVE-2020-8169
suse.com/security/cve/CVE-2020-8231
suse.com/security/cve/CVE-2020-8284
suse.com/security/cve/CVE-2020-8285
suse.com/security/cve/CVE-2020-8286
suse.com/security/cve/CVE-2021-22297
suse.com/security/cve/CVE-2021-22298
suse.com/security/cve/CVE-2021-22876
suse.com/security/cve/CVE-2021-22890
suse.com/security/cve/CVE-2021-22898
suse.com/security/cve/CVE-2021-22901
suse.com/security/cve/CVE-2021-22922
suse.com/security/cve/CVE-2021-22924
suse.com/security/cve/CVE-2021-22945
suse.com/security/cve/CVE-2021-22946
suse.com/security/cve/CVE-2021-22947