REDHAT-BUG-2550717: Low severity curl curl vulnerability
password leak in CURLINFOEFFECTIVEURL =======================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
libcurl could accidentaly return a URL for curleasygetinfo's CURLINFOEFFECTIVEURL option containing credentials, even though neither the URL provided to libcurl nor the redirected URL did not.
INFO ----
The curl tool exposes the same information using the command line option:
--write-out '%{urleffective}'
This credential leak can happen when curl retrieves credentials from a .netrc file.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-94266 to this issue.
CWE-522: Insufficiently Protected Credentials
Severity: low
This bug is not considered a C mistake (likely to have been avoided had we not been using C).
AFFECTED VERSIONS -----------------
- Affected versions: curl 7.62.0 to and including 8.22.0 - Not affected versions: curl < 7.62.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/46e164069d1a5230e4e64
libcurl is used by many applications, but not always advertised as such!
This flaw also affects the curl command line tool.
SOLUTION --------
- Fixed-in: https://github.com/curl/curl/commit/7a6bd027d0de2b6857472d35d
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Do not use CURLINFOEFFECTIVEURL.
TIMELINE --------
This issue was reported to the curl project on September 18, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Joshua Rogers (Aisle Research) - Patched-by: Daniel Stenberg
Thanks a lot!
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.23.0 - Compensating control
Do not use libcurl's CURLINFO_EFFECTIVE_URL option.
Event History
Frequently Asked Questions
Which deployments are exposed to credential disclosure?
Applications using libcurl, and the curl command-line tool, may be exposed when credentials are retrieved from a .netrc file. The leak is surfaced through CURLINFO_EFFECTIVE_URL in libcurl or through --write-out '%{url_effective}' in the curl tool.
What versions should be prioritized for remediation?
curl versions 7.62.0 through 8.22.0, inclusive, are affected. Versions earlier than 7.62.0 and versions 8.23.0 or later are not affected.
How can I determine whether an application may be affected?
Check whether it uses an affected curl version and obtains credentials from a .netrc file. Also identify whether it reads or exposes CURLINFO_EFFECTIVE_URL, or invokes curl with --write-out '%{url_effective}', since those interfaces can return the credential-containing URL.