Advisory Published
Updated

REDHAT-BUG-2331191

First published: Mon Dec 09 2024(Updated: )

When asked to both 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 matches the redirect target hostname, but the entry omits password or both login & password. A curl transfer with `a.com` that redirects to `b.com` that uses a `.netrc` like below (with a match, but no password specified for the second host), would make curl pass on `alicespassword` as password even in the second transfer to the separate host `b.com`. ~~~ machine a.com login alice password alicespassword default login bob ~~~

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 REDHAT-BUG-2331191?

    The severity of REDHAT-BUG-2331191 is categorized as moderate.

  • How do I fix REDHAT-BUG-2331191?

    To fix REDHAT-BUG-2331191, update to the latest version of curl that includes the security patch addressing this vulnerability.

  • Who is affected by REDHAT-BUG-2331191?

    Users of curl who utilize a .netrc file for credentials and follow HTTP redirects may be affected by REDHAT-BUG-2331191.

  • What causes REDHAT-BUG-2331191 to occur?

    REDHAT-BUG-2331191 occurs when curl is directed to follow an HTTP redirect while using a .netrc file, leading to potential leakage of credentials.

  • Is REDHAT-BUG-2331191 exploitable remotely?

    Yes, REDHAT-BUG-2331191 can be exploited remotely if the conditions involving URL redirection and .netrc file usage are met.

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