Buffer Overflow Vulnerability in curl

curl Updated 02 Oct 2025

Summary

14/03/2018
N/A
Yes i
Critical
9.8

CVE-2018-1000120: A buffer overflow exists in curl 7.12.3 to and including curl 7.58.0 in the FTP URL handling that allows an attacker to cause a denial of service or worse. Affects curl across 2 version ranges.

< 7.59.0-r0 < 61c434273654048462873c031eda027dd4acd549

Fixed in 7.59.0-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Curl is a widely used open-source tool and library for transferring data with URLs. It supports various protocols, including HTTP, FTP, and SMTP. The vulnerability, known as CVE-2018-1000120, affects curl versions 7.12.3 to 7.58.0. It specifically targets the FTP URL handling functionality of curl. The vulnerability allows an attacker to exploit a buffer overflow, potentially leading to a denial of service or more severe consequences.

Vulnerability Detail

The buffer overflow vulnerability in curl's FTP URL handling can be exploited by an attacker to cause a denial of service or execute arbitrary code. By sending a specially crafted FTP URL, the attacker can trigger the buffer overflow and overwrite adjacent memory, potentially leading to a crash or the execution of malicious code. This vulnerability has a CVSS score of 9.8, indicating its high severity.

How To Fix

Minimum fixed version

7.59.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade curl

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update curl to the fixed version to mitigate the risk of exploitation.

Conclusion

The buffer overflow vulnerability in curl's FTP URL handling poses a significant risk to systems using affected versions of curl. It is crucial to update to the fixed version to mitigate the risk of exploitation. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for curl →

Share this vulnerability

FAQ

Curl is an open-source tool and library for transferring data with URLs. It supports various protocols, including HTTP, FTP, and SMTP.

The vulnerability allows an attacker to exploit a buffer overflow in curl's FTP URL handling, potentially leading to a denial of service or the execution of arbitrary code.

The vulnerability affects curl versions 7.12.3 to 7.58.0.

To fix this vulnerability, update curl to version 7.59.0-r0 or later.

No, there is no known workaround. It is crucial to update curl to the fixed version.

Related vulnerabilities

Recent vulnerabilities recorded for curl.

How To Fix

Minimum fixed version

7.59.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade curl

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback