3.4
CWE
200
Advisory Published
CVE Published
Updated

CVE-2025-0167: netrc and default credential leak

First published: Wed Feb 05 2025(Updated: )

When asked to use a `.netrc` file for credentials **and** to follow HTTP redirects, curl could leak the password used for the first host to the followed-to host under certain circumstances. This flaw only manifests itself if the netrc file has a `default` entry that omits both login and password. A rare circumstance.

Credit: 2499f714-1537-4658-8207-48ae4bb9eae9

Affected SoftwareAffected VersionHow to fix
Curl

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-0167?

    CVE-2025-0167 is considered a medium severity vulnerability due to the potential leakage of sensitive credentials.

  • How do I fix CVE-2025-0167?

    To fix CVE-2025-0167, ensure that the `.netrc` file does not have a `default` entry that omits both the login and password.

  • Who is affected by CVE-2025-0167?

    CVE-2025-0167 affects users of the curl tool when configured to use a `.netrc` file for credentials while following HTTP redirects.

  • What are the consequences of CVE-2025-0167?

    The consequence of CVE-2025-0167 is that passwords used for one host may be inadvertently sent to a different host during HTTP redirects.

  • When was CVE-2025-0167 disclosed?

    CVE-2025-0167 was disclosed in 2025 as part of ongoing security assessments for the curl tool.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203