Bug 2331191 (CVE-2024-11053) - CVE-2024-11053 curl: curl netrc password leak
Summary: CVE-2024-11053 curl: curl netrc password leak
Keywords:
Status: NEW
Alias: CVE-2024-11053
Deadline: 2024-12-11
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2341770
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-09 17:31 UTC by OSIDB Bzimport
Modified: 2025-05-16 08:27 UTC (History)
19 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2025:1988 0 None None None 2025-03-03 07:39:40 UTC
Red Hat Product Errata RHSA-2025:1671 0 None None None 2025-02-19 10:27:27 UTC
Red Hat Product Errata RHSA-2025:1673 0 None None None 2025-02-19 11:03:58 UTC

Description OSIDB Bzimport 2024-12-09 17:31:57 UTC
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
~~~

Comment 1 errata-xmlrpc 2025-02-19 10:27:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:1671 https://access.redhat.com/errata/RHSA-2025:1671

Comment 2 errata-xmlrpc 2025-02-19 11:03:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:1673 https://access.redhat.com/errata/RHSA-2025:1673


Note You need to log in before you can comment on or make changes to this bug.