PT-2020-3018 · Curl+7 · Curl+7

Published

2020-06-24

·

Updated

2026-05-18

·

CVE-2020-8177

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions curl versions 7.20.0 through 7.70.0
Description The issue exists due to a logical error in handling the Content-Disposition header of an HTTP response. This can allow a remote attacker to overwrite a local file. The vulnerability is related to the improper restriction of names for files and other resources when the -J flag is used. A malicious server can trick curl into overwriting a local file by sending specific HTTP headers. The -J option saves a remote file using the filename present in the Content-Disposition: response header, but the check to avoid overwriting an existing local file is flawed. This flaw allows incoming HTTP headers to overwrite a local file if one exists.
Recommendations For curl versions 7.20.0 through 7.70.0, consider disabling the use of the -J flag in combination with the -i flag until a patch is available. As a temporary workaround, avoid using the -J option with the --remote-header-name and -i (--include) options in the same command line to minimize the risk of exploitation. Restrict access to the vulnerable curl command to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Special Elements Injection

Weakness Enumeration

Related Identifiers

ALT-PU-2020-2227
ALT-PU-2020-2447
BDU:2020-03241
CESA-2020_4599
CESA-2020_5002
CLEANSTART-2026-AY18527
CLEANSTART-2026-BW46578
CLEANSTART-2026-DI23929
CLEANSTART-2026-LQ42192
CLEANSTART-2026-OF85770
CVE-2020-8177
DLA-2295-1
DSA-4881-1
MGASA-2020-0282
OPENSUSE-SU-2020:0883-1
OPENSUSE-SU-2020:0908-1
OPENSUSE-SU-2020_0883-1
OPENSUSE-SU-2020_0908-1
RHSA-2020:4599
RHSA-2020:5002
RHSA-2020:5417
RHSA-2020_4599
RHSA-2020_5002
SUSE-SU-2020:14409-1
SUSE-SU-2020:1732-1
SUSE-SU-2020:1733-1
SUSE-SU-2020:1734-1
SUSE-SU-2020:1735-1
SUSE-SU-2020:1773-1
SUSE-SU-2020_14409-1
SUSE-SU-2020_1732-1
SUSE-SU-2020_1734-1
SUSE-SU-2020_1735-1
SUSE-SU-2020_1773-1
USN-4402-1

Affected Products

Alt Linux
Astra Linux
Centos
Linuxmint
Red Hat
Suse
Ubuntu
Curl