Vulnerability in curl
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2020-8177 has been found in curl.
Successful exploitation can lead to full system takeover. CVSS score: 7.8/10.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "curl CVE-2020-8177" on the vendor's site.
CVE-2020-8177 (curl) — CWE-74 / CVSS v3 7.8
Attack vector: local / no user interaction
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-74) exists in curl.
Check the vendor advisory for the affected versions of curl.
Severity: High (CVSS 7.8/10). Successful exploitation can lead to full system takeover.
Update to the patched release per vendor advisory.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'curl' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'curl' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
curlを grep し、稼働しているサービス・バージョンを把握する。 -
2
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2020-8177 curl Fix available
- Debian DEBIAN-CVE-2020-8177 curl Fix available
- Ubuntu UBUNTU-CVE-2020-8177 curl Fix available
Original description The description as published by the source.
curl can be tricked by a malicious server to overwrite a local file when using
-J (--remote-header-name) and -i (--include) in the same command line.
The command line tool offers the -J option that saves a remote file using
the filename present in the Content-Disposition: response header. curl then
refuses to overwrite an existing local file using the same name, if one
already exists in the current directory.
The -J flag is designed to save a response body, and so it does not work
together with -i and there is logic that forbids it. However, the check is
flawed and does not properly check for when the options are used in the
reversed order: first using -J and then -i were mistakenly accepted.
The result of this mistake was that incoming HTTP headers could overwrite a
local file if one existed, as the check to avoid the local file was done first
when body data was received, and due to the mistake mentioned above, it could
already have received and saved headers by that time.
The saved file would only get response headers added to it, as it would abort
the saving when the first body byte arrives. A malicious server could however
still be made to send back virtually anything as headers and curl would save
them like this, until the first CRLF-CRLF sequence appears.
(Also note that -J needs to be used in combination with -O to have any
effect.)
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory curl.se
- advisory debian.org
- patch cert-portal.siemens.com
- patch oracle.com
- report hackerone.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web nvd.nist.gov
- web github.com