CVE-2020-8177 Path traversal in https://github.com/curl/curl
Attackers can overwrite local files via path traversal when using the -J flag in curl, requiring user interaction with malicious server responses.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-8177?
CVE-2020-8177 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 14 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
curl 7.20.0 through 7.70.0 is vulnerable to improper restriction of names for files and other resources that can lead too overwriting a local file when the -J flag is used.
Which versions are affected by CVE-2020-8177?
It affects 10 products.
Linux distribution packages (40)
curl Red Hat:enterprise_linux:7::client | All versions | 0:7.29.0-59.el7_9.1 |
curl-debuginfo Red Hat:enterprise_linux:7::client | All versions | 0:7.29.0-59.el7_9.1 |
libcurl Red Hat:enterprise_linux:7::client | All versions | 0:7.29.0-59.el7_9.1 |
libcurl-devel Red Hat:enterprise_linux:7::client | All versions | 0:7.29.0-59.el7_9.1 |
curl-debuginfo Red Hat:enterprise_linux:7::computenode | All versions | 0:7.29.0-59.el7_9.1 |
libcurl-devel Red Hat:enterprise_linux:7::computenode | All versions | 0:7.29.0-59.el7_9.1 |
curl Red Hat:enterprise_linux:7::server | All versions | 0:7.29.0-59.el7_9.1 |
curl-debuginfo Red Hat:enterprise_linux:7::server | All versions | 0:7.29.0-59.el7_9.1 |
libcurl Red Hat:enterprise_linux:7::server | All versions | 0:7.29.0-59.el7_9.1 |
libcurl-devel Red Hat:enterprise_linux:7::server | All versions | 0:7.29.0-59.el7_9.1 |
curl Red Hat:enterprise_linux:7::workstation | All versions | 0:7.29.0-59.el7_9.1 |
curl-debuginfo Red Hat:enterprise_linux:7::workstation | All versions | 0:7.29.0-59.el7_9.1 |
libcurl Red Hat:enterprise_linux:7::workstation | All versions | 0:7.29.0-59.el7_9.1 |
libcurl-devel Red Hat:enterprise_linux:7::workstation | All versions | 0:7.29.0-59.el7_9.1 |
curl Red Hat:enterprise_linux:8::baseos | All versions | 0:7.61.1-14.el8 |
curl-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:7.61.1-14.el8 |
curl-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:7.61.1-14.el8 |
curl-minimal-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:7.61.1-14.el8 |
libcurl Red Hat:enterprise_linux:8::baseos | All versions | 0:7.61.1-14.el8 |
libcurl-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:7.61.1-14.el8 |
libcurl-devel Red Hat:enterprise_linux:8::baseos | All versions | 0:7.61.1-14.el8 |
libcurl-minimal Red Hat:enterprise_linux:8::baseos | All versions | 0:7.61.1-14.el8 |
libcurl-minimal-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:7.61.1-14.el8 |
curl Red Hat:rhel_eus:8.2::baseos | All versions | 0:7.61.1-12.el8_2.2 |
curl-debuginfo Red Hat:rhel_eus:8.2::baseos | All versions | 0:7.61.1-12.el8_2.2 |
curl-debugsource Red Hat:rhel_eus:8.2::baseos | All versions | 0:7.61.1-12.el8_2.2 |
curl-minimal-debuginfo Red Hat:rhel_eus:8.2::baseos | All versions | 0:7.61.1-12.el8_2.2 |
libcurl Red Hat:rhel_eus:8.2::baseos | All versions | 0:7.61.1-12.el8_2.2 |
libcurl-debuginfo Red Hat:rhel_eus:8.2::baseos | All versions | 0:7.61.1-12.el8_2.2 |
libcurl-devel Red Hat:rhel_eus:8.2::baseos | All versions | 0:7.61.1-12.el8_2.2 |
libcurl-minimal Red Hat:rhel_eus:8.2::baseos | All versions | 0:7.61.1-12.el8_2.2 |
libcurl-minimal-debuginfo Red Hat:rhel_eus:8.2::baseos | All versions | 0:7.61.1-12.el8_2.2 |
curl SUSE:Enterprise Storage 5 | All versions | 7.37.0-37.47.1 |
curl SUSE:HPE Helion OpenStack 8 | All versions | 7.37.0-37.47.1 |
curl SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 7.60.0-3.29.1 |
curl SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 7.60.0-3.29.1 |
curl SUSE:Linux Enterprise Module for Basesystem 15 SP1 | All versions | 7.60.0-3.29.1 |
curl SUSE:Linux Enterprise Point of Sale 11 SP3 | All versions | 7.37.0-70.47.1 |
curl SUSE:Linux Enterprise Server 11 SP4-LTSS | All versions | 7.37.0-70.47.1 |
curl-openssl1 SUSE:Linux Enterprise Server 11-SECURITY | All versions | 7.37.0-70.47.1 |
Products include Debian Debian Linux, Fujitsu M10-1 Firmware, Fujitsu M10-4 Firmware, Fujitsu M10-4s Firmware, Fujitsu M12-1 Firmware, Fujitsu M12-2 Firmware and 4 more.
How do I fix CVE-2020-8177?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2020-8177 being exploited?
There is no known exploitation of CVE-2020-8177 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2020-8177, CLEANSTART-2026-GP82745, CURL-CVE-2020-8177, DEBIAN-CVE-2020-8177, DLA-2295-1, ECHO-9486-e7d0-469c and 12 more.