VYPR
Unrated severityNVD Advisory· Published Jan 24, 2018· Updated Aug 5, 2024

CVE-2018-1000007

CVE-2018-1000007

Description

libcurl <=7.57.0 leaks custom HTTP headers, including Authorization, to redirect targets.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

libcurl <=7.57.0 leaks custom HTTP headers, including Authorization, to redirect targets.

Vulnerability

In libcurl versions 7.1 through 7.57.0, when an application sets custom HTTP headers (including Authorization headers) and enables automatic redirection following, the headers are sent not only to the initial host but also to any host specified in a Location: header during a 30x redirect. This behavior leaks potentially sensitive authentication data to unintended third parties [1][2].

Exploitation

An attacker needs only to control a URL that the libcurl-using client follows or to have a redirect chain that points to a server under the attacker's control. The client must be configured to follow HTTP redirects (via CURLOPT_FOLLOWLOCATION) and to send custom headers (e.g., via CURLOPT_HTTPHEADER). The attacker receives the leaked headers in the incoming request, including any Authorization header [2].

Impact

Successful exploitation results in the disclosure of sensitive authentication data—such as bearer tokens, basic authentication credentials, or other custom authentication information—to a third-party server. This can lead to impersonation of the client or unauthorized access to protected resources [1][2].

Mitigation

A fix was introduced in libcurl version 7.58.0 [2]. Red Hat backported the fix to httpd24-curl in RHSA-2018:3558 and to curl in RHSA-2018:3157, RHSA-2020:0544, and RHSA-2020:0594 [1][2][3][4]. Users should update to the patched version or avoid sending sensitive custom headers in combination with automatic redirect following.

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

15

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

14

News mentions

0

No linked articles in our index yet.