cve.bz

CVE-2020-8177 Injection

7.8 highExploit referenceEPSS 1.3%Fix available

High (7.8). EPSS 1.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
CWE-99 Improper Control of Resource Identifiers (Resource Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-8177 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-8177?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-8177?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-8177 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2020-8177

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2020-8177](https://cve.bz/cve/badge/CVE-2020-8177.svg)](https://cve.bz/cve/CVE-2020-8177)

HTML:

<a href="https://cve.bz/cve/CVE-2020-8177"><img src="https://cve.bz/cve/badge/CVE-2020-8177.svg" alt="CVE-2020-8177"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
haxx:curlfrom 7.20.0 through 7.70.0
debian:debian_linux10.0
fujitsu:m10-1_firmwarebefore xcp2410
fujitsu:m10-4_firmwarebefore xcp2410
fujitsu:m10-4s_firmwarebefore xcp2410
fujitsu:m12-1_firmwarebefore xcp2410
fujitsu:m12-2_firmwarebefore xcp2410
fujitsu:m12-2s_firmwarebefore xcp2410
fujitsu:m10-1_firmwarebefore xcp3110
fujitsu:m10-4_firmwarebefore xcp3110
fujitsu:m10-4s_firmwarebefore xcp3110
fujitsu:m12-1_firmwarebefore xcp3110
fujitsu:m12-2_firmwarebefore xcp3110
fujitsu:m12-2s_firmwarebefore xcp3110
siemens:sinec_infrastructure_network_servicesbefore 1.0.1.1
splunk:universal_forwarderfrom 8.2.0 before 8.2.12
splunk:universal_forwarderfrom 9.0.0 before 9.0.6
splunk:universal_forwarder9.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9curl7.52.1-5+deb9u11DLA-2295-1
Debian10curl7.64.0-4+deb10u2DSA-4881-1
Debian12, 13, 14curl7.72.0-1DEBIAN-CVE-2020-8177
Ubuntu16.04:LTScurl7.47.0-1ubuntu2.15UBUNTU-CVE-2020-8177 USN-4402-1
Ubuntu18.04:LTScurl7.58.0-2ubuntu3.9UBUNTU-CVE-2020-8177 USN-4402-1
Ubuntu20.04:LTScurl7.68.0-1ubuntu2.1UBUNTU-CVE-2020-8177 USN-4402-1
UbuntuPro:14.04:LTScurl7.35.0-1ubuntu2.20+esm4UBUNTU-CVE-2020-8177 USN-4402-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationcurl, libcurl, libcurl-devel and 1 more0:7.29.0-59.el7_9.1RHSA-2020:5002
Red Hatenterprise_linux:7::computenodelibcurl-devel, curl-debuginfo0:7.29.0-59.el7_9.1RHSA-2020:5002
Red Hatenterprise_linux:8::baseoscurl, libcurl, libcurl-devel and 6 more0:7.61.1-14.el8RHSA-2020:4599
Red Hatrhel_eus:8.2::baseoscurl, libcurl, libcurl-devel and 6 more0:7.61.1-12.el8_2.2RHSA-2020:5417
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 8 morecurl7.37.0-37.47.1SUSE-SU-2020:1732-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Basesystem 15 SP1 and 2 morecurl7.60.0-3.29.1SUSE-SU-2020:1773-1
SUSELinux Enterprise Module for Basesystem 15 SP2curl7.66.0-4.3.1SUSE-SU-2020:1733-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSScurl7.37.0-70.47.1SUSE-SU-2020:14409-1
SUSELinux Enterprise Server 11-SECURITYcurl-openssl17.37.0-70.47.1SUSE-SU-2020:14409-1
SUSELinux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4, Linux Enterprise Software Development Kit 12 SP4curl7.60.0-4.15.2SUSE-SU-2020:1735-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5curl7.60.0-11.3.2SUSE-SU-2020:1734-1
openSUSELeap 15.1curl, curl-mini7.60.0-lp151.5.12.1openSUSE-SU-2020:0908-1
openSUSELeap 15.2curl, curl-mini7.66.0-lp152.3.3.1openSUSE-SU-2020:0883-1
Alpinev3.9curl7.64.0-r4ALPINE-CVE-2020-8177
Alpinev3.10curl7.66.0-r1ALPINE-CVE-2020-8177
Alpinev3.11curl7.67.0-r1ALPINE-CVE-2020-8177
Alpinev3.12curl7.69.1-r1ALPINE-CVE-2020-8177
Alpinev3.13, v3.14, v3.15 and 9 morecurl7.71.0-r0ALPINE-CVE-2020-8177

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue only affects the 'curl' command line utility. Additionally, this is only an issue when using the '-J' (with the '-O' option) and '-i' command line options combined.

In most cases, there is nothing to gain for a local attacker here: the curl command line utility is likely running with the same privileges as the user, and thus the user can already overwrite all the files curl could overwrite. However, a local user will have to call curl with the '-J' and '-i' command line options while requesting content from a malicious server, which then opens up an opportunity for the malicious server to overwrite local files.

Red Hat's mitigation

The vulnerability is only possible when using the '-J' and '-i' switches in conjunction with the curl command. Executing curl without these switches mitigates the flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7curl-0:7.29.0-59.el7_9.1Fixed 2020-11-10RHSA-2020:5002
Red Hat Enterprise Linux 8curl-0:7.61.1-14.el8Fixed 2020-11-04RHSA-2020:4599
Red Hat Enterprise Linux 8.2 Extended Update Supportcurl-0:7.61.1-12.el8_2.2Fixed 2020-12-15RHSA-2020:5417
Red Hat OpenShift Doopenshiftdo/odo-init-image-rhel7:1.1.3-2Fixed 2021-03-22RHSA-2021:0949
.NET Core 2.1 on Red Hat Enterprise Linuxrh-dotnet21-curlNot affected
.NET Core 3.1 on Red Hat Enterprise Linuxrh-dotnet31-curlNot affected
Red Hat Ceph Storage 2curlOut of support scope
Red Hat Enterprise Linux 5curlNot affected
Red Hat Enterprise Linux 6curlNot affected
Red Hat JBoss Core Servicesjbcs-httpd24-curlNot affected
Red Hat Software Collectionshttpd24-curlWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-8177.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-22-069-09Siemens SINEC INS2022-03-08MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-10 Buffer Overflow via Environment Variables Likelihood: High · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-240 Resource Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON