CVE-2020-8177
Splunk Forwarder vulnerability analysis and mitigation

Overview

curl versions 7.20.0 through 7.70.0 contain a vulnerability that allows a malicious server to overwrite local files when using the -J (--remote-header-name) and -i (--include) command line options together (Curl Docs). The vulnerability was discovered on May 30, 2020 and publicly disclosed on June 24, 2020 (Curl Docs).

Technical details

The vulnerability stems from a flaw in the command line tool's logic for handling the -J option, which saves remote files using filenames from Content-Disposition headers. While curl normally prevents overwriting existing local files, the check fails when -J and -i options are used in reverse order. This allows incoming HTTP headers to overwrite local files before the body data check occurs. The saved file would only contain response headers up until the first CRLF-CRLF sequence (Curl Docs).

Impact

A malicious server could exploit this vulnerability to overwrite local files with arbitrary header content when a user runs curl with the -J and -i options. The vulnerability only affects the curl command line tool and not applications using libcurl (Curl Docs).

Exploitability

The vulnerability requires a specific combination of command line options (-J and -i) to be used together, and only affects scenarios where curl is run in directories containing existing files. The issue was assigned a CVSS score of 7.8 (High) (NVD).

Mitigation and workarounds

Users should upgrade to curl version 7.71.0 or later which contains the fix. Alternatively, users can avoid using the -J option in directories with existing files or apply the available patch to their current curl version. It is recommended to never run curl with the -J option in sensitive directories like $HOME (Curl Docs).

Additional resources


SourceThis report was generated using AI

Related Splunk Forwarder vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-20298HIGH8
  • Splunk Forwarder logoSplunk Forwarder
  • cpe:2.3:a:splunk:universal_forwarder
NoYesJun 02, 2025
CVE-2025-20387MEDIUM6.5
  • Splunk Forwarder logoSplunk Forwarder
  • cpe:2.3:a:splunk:splunk
NoYesDec 03, 2025
CVE-2023-27537MEDIUM5.9
  • MySQL logoMySQL
  • curl-debugsource
NoYesMar 30, 2023
CVE-2023-27536MEDIUM5.9
  • MySQL logoMySQL
  • libcurl4-32bit
NoYesMar 30, 2023
CVE-2023-27538MEDIUM5.5
  • MySQL logoMySQL
  • curl-minimal
NoYesMar 30, 2023

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management