Curl
password leak with netrc and user in URL
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.1critical · scored by CISA ADP · CWE-522
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
curl curl
- >= 8.11.1, < 8.14.2
- >= 8.15.0, < 8.16.1
- >= 8.17.0, < 8.20.1
Fixed in 8.14.2, 8.16.1, 8.20.1
curl curl
- >= e9b9bbac22c26cf67316fa8e6c6b9e831af31949, < 4ae1d7cc2643e4773a136395f12bc02fc6867854
Fixed in 4ae1d7cc2643e4773a136395f12bc02fc6867854
curl curl
- 8.20.0
- 8.19.0
- 8.18.0
- 8.17.0
- 8.16.0
- 8.15.0
- 8.14.1
- 8.14.0
- 8.13.0
- 8.12.1
- 8.12.0
- 8.11.1
Mitigation
Upgrade curl to 8.14.2 or 8.16.1 or 8.20.1 or later.
Upgrade curl to 4ae1d7cc2643e4773a136395f12bc02fc6867854 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.