REDHAT-BUG-2496760: Medium severity curl curl vulnerability

Published Jul 3, 2026
·
Updated

When asking curl to use a .netrc file to find credentials and at the same time specifying a URL with a username(without a password), like https://user@example.com/, curl could wrongly get and use the password for another user set in the .netrc file for that host if such a one exists and there is no match for the specified user.

Affected Software

1 affected component
curl curl

Event History

Jul 3, 2026
Data Sourced
via Red Hat·07:01 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What conditions are required for this issue to occur?

curl must be configured to use a .netrc file, and the requested URL must include a username but omit a password. The .netrc file must contain credentials for a different user on the same host, while lacking an entry that matches the username in the URL.

2

Who is exposed to unintended credential use?

Users or automation that combine .netrc-based authentication with URLs of the form https://user@example.com/ are exposed when their .netrc files store credentials for multiple users on the same host. In that situation, curl can select another user's password for the request.

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