CVE-2018-1000120 curl FTP path confusion leads to NIL byte out of bounds write

Critical 9.8 Published Updated

A buffer overflow in curl's FTP URL handling allows attackers to cause denial of service or potentially execute arbitrary code.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-1000120?

CVE-2018-1000120 is a critical memory corruption vulnerability in Canonical Ubuntu Linux, published on 14 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-787

Which versions are affected by CVE-2018-1000120?

2 open source packages ship an affected version, including curl. It affects 9 products.

PackageAffectedFixed in
curl NuGetFrom 7.12.3None
curl NuGetFrom 7.12.3None

Products include Canonical Ubuntu Linux, Debian Debian Linux, Haxx Curl, Oracle Communications Webrtc Session Controller, Oracle Enterprise Manager Ops Center, Oracle Peoplesoft Enterprise Peopletools and 3 more.

How do I fix CVE-2018-1000120?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2018-1000120 being exploited?

There is no known exploitation of CVE-2018-1000120 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-1000120, CLEANSTART-2026-AU52418, CURL-CVE-2018-1000120, DEBIAN-CVE-2018-1000120, GHSA-674j-7m97-j2p9, UBUNTU-CVE-2018-1000120.

Is CVE-2018-1000120 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free