Description
Successfully using libcurl to do a transfer over a specific HTTP proxy
(`proxyA`) with **Digest** authentication and then changing the proxy host to
a second one (`proxyB`) for a second transfer, reusing the same handle, makes
libcurl wrongly pass on the `Proxy-Authorization:` header field meant for
`proxyA`, to `proxyB`.
Published: 2026-05-13
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Using libcurl to send a request through an HTTP proxy that requires Digest authentication, an attacker can cause the library to incorrectly carry the Proxy-Authorization header from the first proxy to a second proxy when the proxy host is changed while reusing the same handle. This flaw results in the credentials intended for the first proxy being exposed to the second proxy, thereby compromising the confidentiality of authentication tokens. The weakness is a classic example of Information Disclosure and is identified as CWE‑294 and CWE‑201.

Affected Systems

The affected product is the libcurl library commonly known as CURL. The advisory does not specify vulnerable versions, so any libcurl release that exhibits this behavior should be considered at risk. The problem lies in the library’s internal state management when a handle’s proxy configuration changes.

Risk and Exploitability

The EPSS score is <1% and the CVSS score of 5.3 indicates a moderate severity. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that exploitation requires an attacker to influence the application’s use of multiple proxies or to operate a malicious second proxy (proxyB) capable of capturing the leaked header. The impact scales with the sensitivity of the compromised credentials and with how widely the vulnerable code path is used; an attacker capturing the header can authenticate to the first proxy and potentially access resources beyond the second proxy’s domain.

Generated by OpenCVE AI on May 20, 2026 at 13:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update libcurl to the latest release that includes the fix for CVE-2026-7168
  • If a patch is not yet available, avoid reusing the same CURL handle when changing proxy hosts; create a fresh handle for each proxy to prevent authentication state carry‑over
  • Before switching proxies, explicitly clear proxy authentication settings by setting CURLOPT_PROXYUSERNAME and CURLOPT_PROXYPASSWORD to empty or null values

Generated by OpenCVE AI on May 20, 2026 at 13:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8227-1 curl vulnerabilities
History

Wed, 20 May 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
Weaknesses CWE-201
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 14 May 2026 14:15:00 +0000

Type Values Removed Values Added
First Time appeared Haxx
Haxx curl
Weaknesses CWE-294
CPEs cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*
Vendors & Products Haxx
Haxx curl

Wed, 13 May 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}


Wed, 13 May 2026 15:30:00 +0000

Type Values Removed Values Added
References

Wed, 13 May 2026 11:30:00 +0000

Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl

Wed, 13 May 2026 09:15:00 +0000

Type Values Removed Values Added
Description Successfully using libcurl to do a transfer over a specific HTTP proxy (`proxyA`) with **Digest** authentication and then changing the proxy host to a second one (`proxyB`) for a second transfer, reusing the same handle, makes libcurl wrongly pass on the `Proxy-Authorization:` header field meant for `proxyA`, to `proxyB`.
Title cross-proxy Digest auth state leak
References

cve-icon MITRE

Status: PUBLISHED

Assigner: curl

Published:

Updated: 2026-05-13T14:18:13.718Z

Reserved: 2026-04-27T07:37:37.172Z

Link: CVE-2026-7168

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-13T13:01:57.200

Modified: 2026-05-14T14:12:48.457

Link: CVE-2026-7168

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-05-13T08:29:08Z

Links: CVE-2026-7168 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-20T13:30:26Z

Weaknesses