Every CVE Search/ Get API key

CVE-2018-1000300

curl version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer...

9.8 CriticalFix available

curl version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer Overflow vulnerability in denial of service and more that can result in curl might overflow a heap based memory buffer when closing down an FTP connection with very long server command replies.. This vulnerability appears to have been fixed in curl < 7.54.1 and curl >= 7.60.0.

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

4.62%Up 2.3 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

curl version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer Overflow vulnerability in denial of service and more that can result in curl might overflow a heap based memory buffer when closing down an FTP connection with very long server command replies.. This vulnerability appears to have been fixed in curl < 7.54.1 and curl >= 7.60.0.

Record
CVE-2018-1000300
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 version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer Overflow vulnerability in denial of service and more that can result in curl might overflow a heap based memory buffer when closing down an FTP connection with very long server command replies.. This vulnerability appears to have been fixed in curl < 7.54.1 and curl >= 7.60.0.

Record
CVE-2018-1000300
Updated
2026-11-02
EUVDEUVD-2018-1895 No score

curl version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer Overflow vulnerability in denial of service and more that can result in curl might overflow a heap based memory buffer when closing down an FTP connection with very long server command replies.. This vulnerability appears to have been fixed in curl < 7.54.1 and curl >= 7.60.0.

Record
EUVD-2018-1895
Updated
2026-11-03
GitHub AdvisoriesGHSA-5vcr-2m3x-3m96 9.8

curl version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer...

curl version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer Overflow vulnerability in denial of service and more that can result in curl might overflow a heap based memory buffer when closing down an FTP connection with very long server command replies.. This vulnerability appears to have been fixed in curl < 7.54.1 and curl >= 7.60.0.

Record
GHSA-5vcr-2m3x-3m96
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-1000300 9.8

curl version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer Overflow vulnerability in denial of service and more that can result in curl might overflow a heap based memory buffer when closing down an FTP connection with very long server command replies.. This vulnerability appears to have been fixed in curl < 7.54.1 and curl >= 7.60.0.

Record
ALPINE-CVE-2018-1000300
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-1000300 9.8

CVE-2018-1000300 does not affect BellSoft software

Record
BELL-CVE-2018-1000300
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 7 moreShow less
OSV 9.8

curl version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer Overflow vulnerability in denial of service and more that can result in curl might overflow a heap based memory buffer when closing down an FTP connection with very long server command replies.. This vulnerability appears to have been fixed in curl < 7.54.1 and curl >= 7.60.0.

Record
CVE-2018-1000300
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-1000300 9.8

curl version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer Overflow vulnerability in denial of service and more that can result in curl might overflow a heap based memory buffer when closing down an FTP connection with very long server command replies.. This vulnerability appears to have been fixed in curl < 7.54.1 and curl >= 7.60.0.

Record
DEBIAN-CVE-2018-1000300
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-1000300 9.8

curl version curl 7.54.1 to and including curl 7.59.0 contains a CWE-122: Heap-based Buffer Overflow vulnerability in denial of service and more that can result in curl might overflow a heap based memory buffer when closing down an FTP connection with very long server command replies.. This vulnerability appears to have been fixed in curl < 7.54.1 and curl >= 7.60.0.

Record
UBUNTU-CVE-2018-1000300
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-1000300 No score

FTP shutdown response buffer overflow

curl might overflow a heap based memory buffer when closing down an FTP connection with long server command replies.

When doing FTP transfers, curl keeps a spare "closure handle" around internally that is 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.

This situation was detected by an assert() in the code, but that was of course only preventing bad stuff in debug builds. This bug is highly unlikely to trigger with non-malicious servers.

Record
CURL-CVE-2018-1000300
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
OSVUSN-3648-1 No score

curl vulnerabilities

Dario Weisser discovered that curl incorrectly handled long FTP server command replies. If a user or automated system were tricked into connecting to a malicious FTP server, a remote attacker could use this issue to cause curl to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 17.10 and Ubuntu 18.04 LTS. (CVE-2018-1000300)

Max Dymond discovered that curl incorrectly handled certain RTSP responses. If a user or automated system were tricked into connecting to a malicious server, a remote attacker could use this issue to cause curl to crash, resulting in a denial of service, or possibly obtain sensitive information. (CVE-2018-1000301)

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

Affected products

Affected packages

Affected packages
PackageAffectedFixed
curl
Alpine:v3.10
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.11
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.12
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.13
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.14
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.15
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.16
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.17
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.18
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.19
7.54.1 up to 7.60.0-r0
7.60.0-r0
Show 20 moreShow less
Affected packages
PackageAffectedFixed
curl
Alpine:v3.20
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.21
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.22
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.23
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.24
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.4
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.5
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.6
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.7
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.8
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Alpine:v3.9
7.54.1 up to 7.60.0-r0
7.60.0-r0
curl
Debian:12
before 7.60.0-1
7.60.0-1
curl
Debian:13
before 7.60.0-1
7.60.0-1
curl
Debian:14
before 7.60.0-1
7.60.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
Ubuntu:18.04:LTS
before 7.58.0-2ubuntu3.1, plus listed versions
7.55.1-1ubuntu27.55.1-1ubuntu2.17.57.0-1ubuntu17.58.0-2ubuntu17.58.0-2ubuntu27.58.0-2ubuntu3
7.58.0-2ubuntu3.1
curl
Ubuntu:14.04:LTS
From an advisory covering 2 CVEs
before 7.35.0-1ubuntu2.16, plus listed versions
7.32.0-1ubuntu17.33.0-1ubuntu17.34.0-1ubuntu17.35.0-1ubuntu17.35.0-1ubuntu2
Show 14 moreShow less
7.35.0-1ubuntu2.17.35.0-1ubuntu2.27.35.0-1ubuntu2.37.35.0-1ubuntu2.57.35.0-1ubuntu2.67.35.0-1ubuntu2.77.35.0-1ubuntu2.87.35.0-1ubuntu2.97.35.0-1ubuntu2.107.35.0-1ubuntu2.117.35.0-1ubuntu2.127.35.0-1ubuntu2.137.35.0-1ubuntu2.147.35.0-1ubuntu2.15
7.35.0-1ubuntu2.16
curl
Ubuntu:16.04:LTS
From an advisory covering 2 CVEs
before 7.47.0-1ubuntu2.8, plus listed versions
7.43.0-1ubuntu27.45.0-1ubuntu17.46.0-1ubuntu17.47.0-1ubuntu17.47.0-1ubuntu2
Show 7 moreShow less
7.47.0-1ubuntu2.17.47.0-1ubuntu2.27.47.0-1ubuntu2.37.47.0-1ubuntu2.47.47.0-1ubuntu2.57.47.0-1ubuntu2.67.47.0-1ubuntu2.7
7.47.0-1ubuntu2.8
curl
Ubuntu:18.04:LTS
From an advisory covering 2 CVEs
before 7.58.0-2ubuntu3.1, plus listed versions
7.55.1-1ubuntu27.55.1-1ubuntu2.17.57.0-1ubuntu17.58.0-2ubuntu17.58.0-2ubuntu27.58.0-2ubuntu3
7.58.0-2ubuntu3.1
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-1000300 is a critical vulnerability (CVSS 9.8) in Haxx Curl, published May 16, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.62%, the 91st percentile. Fixed in curl 7.60.0-r0.

References

Show 71 moreShow less
MoveEnter Open