---
id: CVE-2020-8177
title: >-
  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.
summary: >-
  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: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-99
  - CWE-74
vendor: haxx
product: curl
affected:
  - 'curl >= 7.20.0, <= 7.70.0'
  - debian_linux = 10.0
  - m10-1_firmware < xcp2410
  - m10-4_firmware < xcp2410
  - m10-4s_firmware < xcp2410
  - m12-1_firmware < xcp2410
  - m12-2_firmware < xcp2410
  - m12-2s_firmware < xcp2410
  - m10-1_firmware < xcp3110
  - m10-4_firmware < xcp3110
  - m10-4s_firmware < xcp3110
  - m12-1_firmware < xcp3110
  - m12-2_firmware < xcp3110
  - m12-2s_firmware < xcp3110
  - sinec_infrastructure_network_services < 1.0.1.1
  - 'universal_forwarder >= 8.2.0, < 8.2.12'
  - 'universal_forwarder >= 9.0.0, < 9.0.6'
  - universal_forwarder = 9.1.0
patched:
  - m10-1_firmware xcp3110
  - m10-4_firmware xcp3110
  - m10-4s_firmware xcp3110
  - m12-1_firmware xcp3110
  - m12-2_firmware xcp3110
  - m12-2s_firmware xcp3110
  - sinec_infrastructure_network_services 1.0.1.1
  - universal_forwarder 9.0.6
published: '2020-12-14'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T09:17:19.793'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2020-8177'
references:
  - url: 'https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf'
    label: support@hackerone.com
  - url: 'https://curl.se/docs/CVE-2020-8177.html'
    label: support@hackerone.com
  - url: 'https://hackerone.com/reports/887462'
    label: support@hackerone.com
  - url: 'https://www.debian.org/security/2021/dsa-4881'
    label: support@hackerone.com
  - url: 'https://www.oracle.com/security-alerts/cpujan2022.html'
    label: support@hackerone.com
  - url: 'https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://curl.se/docs/CVE-2020-8177.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://hackerone.com/reports/887462'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.debian.org/security/2021/dsa-4881'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.oracle.com/security-alerts/cpujan2022.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-389290.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
epss: 0.01251
epssPercentile: 0.68658
ingestedAt: '2026-10-14T09:24:26.057Z'
---

## Overview

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.

## Affected

- `curl >= 7.20.0, <= 7.70.0`
- `debian_linux = 10.0`
- `m10-1_firmware < xcp2410`
- `m10-4_firmware < xcp2410`
- `m10-4s_firmware < xcp2410`
- `m12-1_firmware < xcp2410`
- `m12-2_firmware < xcp2410`
- `m12-2s_firmware < xcp2410`
- `m10-1_firmware < xcp3110`
- `m10-4_firmware < xcp3110`
- `m10-4s_firmware < xcp3110`
- `m12-1_firmware < xcp3110`
- `m12-2_firmware < xcp3110`
- `m12-2s_firmware < xcp3110`
- `sinec_infrastructure_network_services < 1.0.1.1`
- `universal_forwarder >= 8.2.0, < 8.2.12`
- `universal_forwarder >= 9.0.0, < 9.0.6`
- `universal_forwarder = 9.1.0`

## Remediation

Upgrade past the affected range:

- `m10-1_firmware xcp3110`
- `m10-4_firmware xcp3110`
- `m10-4s_firmware xcp3110`
- `m12-1_firmware xcp3110`
- `m12-2_firmware xcp3110`
- `m12-2s_firmware xcp3110`
- `sinec_infrastructure_network_services 1.0.1.1`
- `universal_forwarder 9.0.6`
