Credential disclosure via flawed redirect host check
Published Jun 1, 2022 · Updated May 27, 2026
Insufficient credential protection in curl 4.9 through 7.82.0 allows remote attackers to read credentials through authenticated redirects. The redirect same-host check ignores protocol changes and port differences, so curl forwards user passwords or TLS-SRP credentials to another service. Exposure requires automatic redirect following, supplied credentials, and an attacker-controlled redirect or destination; default redirects are limited to HTTP(S) and FTP(S).
Summary
What happened
Insufficient credential protection in curl 4.9 through 7.82.0 allows remote attackers to read credentials through authenticated redirects. The redirect same-host check ignores protocol changes and port differences, so curl forwards user passwords or TLS-SRP credentials to another service. Exposure requires automatic redirect following, supplied credentials, and an attacker-controlled redirect or destination; default redirects are limited to HTTP(S) and FTP(S).
The record
- CVE
- CVE-2022-27774
- Published
- Jun 1, 2022
- Updated
- May 27, 2026
- Vendor
- curl
- Product
- curl
- Classifications
- CWE-522
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 1, 2022CVE publishedPublication date reported by the CVE source.
- May 27, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=curl 4.9 to and include curl 7.82.0 are affected
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- HackerOne report 1543773 demonstrationproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo