Every CVE Search/ Get API key

CVE-2016-0754

cURL before 7.47.0 on Windows allows attackers to write to arbitrary files in the current working...

5.3 Medium

cURL before 7.47.0 on Windows allows attackers to write to arbitrary files in the current working directory on a different drive via a colon in a remote file name.

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
None
Integrity
Low
Availability
None

Exploit likelihood

1.15%Up 0.3 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 5.3

cURL before 7.47.0 on Windows allows attackers to write to arbitrary files in the current working directory on a different drive via a colon in a remote file name.

Record
CVE-2016-0754
CVSS 3.0
5.3 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:P/A:N
Weakness
CWE-20
Updated
2026-11-02
CVE List No score

cURL before 7.47.0 on Windows allows attackers to write to arbitrary files in the current working directory on a different drive via a colon in a remote file name.

Record
CVE-2016-0754
Updated
2026-11-02
EUVDEUVD-2016-0774 No score

cURL before 7.47.0 on Windows allows attackers to write to arbitrary files in the current working directory on a different drive via a colon in a remote file name.

Record
EUVD-2016-0774
Updated
2026-11-03
GitHub AdvisoriesGHSA-p8rx-wpgr-v4vx 5.3

cURL before 7.47.0 on Windows allows attackers to write to arbitrary files in the current working...

cURL before 7.47.0 on Windows allows attackers to write to arbitrary files in the current working directory on a different drive via a colon in a remote file name.

Record
GHSA-p8rx-wpgr-v4vx
CVSS 3.0
5.3 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-20
Updated
2026-11-02
OSV 5.3

cURL before 7.47.0 on Windows allows attackers to write to arbitrary files in the current working directory on a different drive via a colon in a remote file name.

Record
CVE-2016-0754
CVSS 3.0
5.3 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
OSVCURL-CVE-2016-0754 No score

remote filename path traversal in curl tool for Windows

curl does not sanitize colons in a remote filename that is used as the local filename. This may lead to a vulnerability on systems where the colon is a special path character. Currently Windows is the only OS where this vulnerability applies.

curl offers command line options --remote-name (also usable as -O) and --remote-header-name (also usable as -J). When both of those options are used together (-OJ) and the server provides a remote filename for the content, curl writes its output to that server-provided filename, as long as that file does not already exist. If it does exist curl fails to write.

If both options are used together (-OJ) but the server does not provide a remote filename, or if -O is used without -J, curl writes output to a filename based solely on the remote filename in the URL string provided by the user, regardless of whether or not that file already exists.

In either case curl does not sanitize colons in the filename. As a result in Windows it is possible and unintended behavior for curl to write to a file in the working directory of a drive that is not the current drive (i.e. outside the current working directory), and also possible to write to a file's alternate data stream.

For example if curl -OJ and the server sends filename=f:foo curl incorrectly writes foo to the working directory for drive F even if drive F is not the current drive. For a more detailed explanation see the 'MORE BACKGROUND AND EXAMPLE' section towards the end of this advisory.

Though no known exploit is available for this issue at the time of the publication, writing one would be undemanding and could be serious depending on the name of the file and where it ends up being written.

Record
CURL-CVE-2016-0754
Updated
2026-11-02

Affected products

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-0754 is a medium vulnerability (CVSS 5.3) in Haxx Curl, published January 27, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.15%, the 67th percentile. No source names a fixed version.

References

MoveEnter Open