CVE-2018-1000300
Description
curl versions 7.54.1 through 7.59.0 have a heap buffer overflow when processing long FTP server command replies during connection shutdown.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
curl versions 7.54.1 through 7.59.0 have a heap buffer overflow when processing long FTP server command replies during connection shutdown.
Vulnerability
A heap-based buffer overflow exists in curl versions 7.54.1 through 7.59.0 (inclusive) when handling long FTP server command replies during connection shutdown. The issue lies in the closure handle used internally for FTP connections, where cached server response data can exceed the default 16 KB buffer, leading to a heap overflow [2]. The overflow is triggered only when closing an FTP connection with very long server responses.
Exploitation
An attacker must operate a malicious FTP server that sends oversized command replies. A user or automated system must connect to that server via curl or an application using libcurl. When the FTP transfer completes and the connection is shut down, the cached response data may overflow the heap buffer [1][2]. No authentication or special privileges are required beyond the ability to lure the user into contacting the malicious server.
Impact
Successful exploitation can cause curl to crash (denial of service) or potentially allow arbitrary code execution, depending on the heap memory layout [1]. The overflow is controllable by the server, making code execution possible but not guaranteed. The impact is limited to the curl process; however, if libcurl is used in a server or automated tool, it could be leveraged for further compromise.
Mitigation
The vulnerability is fixed in curl version 7.60.0, released on May 16, 2018 [2]. Users should upgrade to 7.60.0 or later, or apply the patch available from the curl project [2]. For Ubuntu, fixed packages are available in USN-3648-1 [1]. Gentoo users should upgrade to >=net-misc/curl-7.60.0 [3]. As a workaround, avoid FTP transfers until the update is applied [2].
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
8- security.gentoo.org/glsa/201806-05mitrevendor-advisoryx_refsource_GENTOO
- usn.ubuntu.com/3648-1/mitrevendor-advisoryx_refsource_UBUNTU
- www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.htmlmitrex_refsource_CONFIRM
- www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.htmlmitrex_refsource_CONFIRM
- www.securityfocus.com/bid/104207mitrevdb-entryx_refsource_BID
- www.securitytracker.com/id/1040933mitrevdb-entryx_refsource_SECTRACK
- curl.haxx.se/docs/adv_2018-82c2.htmlmitrex_refsource_CONFIRM
- www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.htmlmitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.