CVE Database›CVE-2024-11053

CVE-2024-11053

curl: curl netrc password leak

Loading…

Severity

Low

Red Hat Product Security

5.9

CVSS 3.1

Review impact separately from score.

Published · December 11, 2024

Updated · October 22, 2026

Description

A flaw was found in curl. A logic error when processing credentials from the .netrc file while performing redirects allows the transfer of credentials from the original host to the followed-to host under certain circumstances, leaking the credentials to the followed-to host.

Statement

This issue only affects curl when a .netrc file is used and a redirect is performed. Additionally, the .netrc must match the target hostname but the followed-to host does not have a password or both login and password configured.

Example of a vulnerable .netrc configuration:

machine a.com
   login alice
   password alicespassword

default
   login bob

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Avoid using the .netrc file together with redirects.

CVSS / CWE

CVSS 3.1 · 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor