CVE-2024-11053: netrc and redirect credential leak
Last updated 10 July 2026
Other sources
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 ~~~
— Red Hat
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.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/curlto a version that resolves this vulnerability.Fixed in 7.74.0-1.3+deb11u13Fixed in 7.74.0-1.3+deb11u16Fixed in 7.88.1-10+deb12u14Fixed in 8.14.1-2+deb13u3Fixed in 8.20.0-5Fixed in 8.21.0-2
Event History
Frequently Asked Questions
What is the severity of CVE-2024-11053?
CVE-2024-11053 has been classified as a medium severity vulnerability due to the potential for credential leakage.
How do I fix CVE-2024-11053?
To mitigate CVE-2024-11053, upgrade curl to version 8.11.1-1 or later.
What are the affected versions of curl for CVE-2024-11053?
CVE-2024-11053 affects curl versions up to and including 7.88.1-10+deb12u8 and specific releases in the 7.74.x series.
Can CVE-2024-11053 lead to unauthorized access?
Yes, CVE-2024-11053 can lead to unauthorized access by leaking the password from a .netrc file to unintended hosts.
Is CVE-2024-11053 specific to a particular operating system?
CVE-2024-11053 primarily affects the Debian distribution of curl, but similar configurations may exist in other operating systems.