CVE-2018-0500
highpriority · track · 41EPSS 0.064 · 94 %ileDEEUUSEPSS · scored 2026-10-27
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).
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (12)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-0266cURL: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit BenutzerrechtenDeutsch2018-07-29csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in cURL ausnutzen, um beliebigen Programmcode mit Benutzerrechten auszuführen.
- CURL-CVE-2018-0500SMTP send heap buffer overflow2018-07-11vendor · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (19)
External citations — patches, advisories, analysis.
- http://www.securitytracker.com/id/1041280cnnvd
- https://access.redhat.com/errata/RHSA-2018:2486cnnvd
- https://curl.haxx.se/docs/adv_2018-70a2.htmlcnnvd
- https://github.com/curl/curl/commit/ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628cnnvd
- https://security.gentoo.org/glsa/201807-04cnnvd
- https://usn.ubuntu.com/3710-1/cnnvd
- https://www.ibm.com/support/pages/node/1143490cnnvd
- http://www.securitytracker.com/id/1041280enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan