REDHAT-BUG-2331191: Low severity curl curl vulnerability

Published Dec 9, 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 Software

1 affected component
curl curl

Event History

Dec 9, 2024
Data Sourced
via Red Hat·05:31 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2331191?

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

2

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.

3

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.

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203