Password disclosure via empty netrc default match
Published Feb 5, 2025 · Updated Mar 7, 2025
Credential exposure in curl 7.76.0 through 8.11.1 allows remote attackers to obtain a prior host's password through an HTTP redirect. The lib/netrc.c parser treats an empty default entry as a successful match, so redirect handling reuses the first host's previously selected password for the next host. Exposure requires netrc credential use, redirect following, and a default entry with neither login nor password; only the password is disclosed to the followed-to host.
Summary
What happened
Credential exposure in curl 7.76.0 through 8.11.1 allows remote attackers to obtain a prior host's password through an HTTP redirect. The lib/netrc.c parser treats an empty default entry as a successful match, so redirect handling reuses the first host's previously selected password for the next host. Exposure requires netrc credential use, redirect following, and a default entry with neither login nor password; only the password is disclosed to the followed-to host.
The record
- CVE
- CVE-2025-0167
- Published
- Feb 5, 2025
- Updated
- Mar 7, 2025
- Vendor
- curl
- Product
- curl
- Classifications
- CWE-200, T1557
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 5, 2025CVE publishedPublication date reported by the CVE source.
- Mar 7, 2025Record 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=7.76.0 <=7.76.0
- Affected versionversion=7.76.1 <=7.76.1
- Affected versionversion=7.77.0 <=7.77.0
- Affected versionversion=7.78.0 <=7.78.0
- Affected versionversion=7.79.0 <=7.79.0
- Affected versionversion=7.79.1 <=7.79.1
- Affected versionversion=7.80.0 <=7.80.0
- Affected versionversion=7.81.0 <=7.81.0
- Affected versionversion=7.82.0 <=7.82.0
- Affected versionversion=7.83.0 <=7.83.0
- Affected versionversion=7.83.1 <=7.83.1
- Affected versionversion=7.84.0 <=7.84.0
- Affected versionversion=7.85.0 <=7.85.0
- Affected versionversion=7.86.0 <=7.86.0
- Affected versionversion=7.87.0 <=7.87.0
- Affected versionversion=7.88.0 <=7.88.0
- Affected versionversion=7.88.1 <=7.88.1
- Affected versionversion=8.0.0 <=8.0.0
- Affected versionversion=8.0.1 <=8.0.1
- Affected versionversion=8.10.0 <=8.10.0
- Affected versionversion=8.10.1 <=8.10.1
- Affected versionversion=8.1.0 <=8.1.0
- Affected versionversion=8.11.0 <=8.11.0
- Affected versionversion=8.11.1 <=8.11.1
- Affected versionversion=8.1.1 <=8.1.1
- Affected versionversion=8.1.2 <=8.1.2
- Affected versionversion=8.2.0 <=8.2.0
- Affected versionversion=8.2.1 <=8.2.1
- Affected versionversion=8.3.0 <=8.3.0
- Affected versionversion=8.4.0 <=8.4.0
- Affected versionversion=8.5.0 <=8.5.0
- Affected versionversion=8.6.0 <=8.6.0
- Affected versionversion=8.7.0 <=8.7.0
- Affected versionversion=8.7.1 <=8.7.1
- Affected versionversion=8.8.0 <=8.8.0
- Affected versionversion=8.9.0 <=8.9.0
- Affected versionversion=8.9.1 <=8.9.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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
- curl test486 redirect credential-leak regression testproof 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