{"id":"UBUNTU-CVE-2025-0167","details":"When asked to 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 has a `default` entry that omits both login and password. A rare circumstance.","modified":"2026-04-22T15:28:04.238116Z","published":"2025-02-05T00:00:00Z","related":["USN-8084-1"],"upstream":["CVE-2025-0167"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-0167"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-0167"},{"type":"REPORT","url":"https://curl.se/docs/CVE-2025-0167.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8084-1"}],"affected":[{"package":{"name":"curl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/curl@7.81.0-1ubuntu1.23?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.81.0-1ubuntu1.23"}]}],"versions":["7.74.0-1.3ubuntu2","7.74.0-1.3ubuntu3","7.80.0-3","7.81.0-1","7.81.0-1ubuntu1.1","7.81.0-1ubuntu1.2","7.81.0-1ubuntu1.3","7.81.0-1ubuntu1.4","7.81.0-1ubuntu1.6","7.81.0-1ubuntu1.7","7.81.0-1ubuntu1.8","7.81.0-1ubuntu1.10","7.81.0-1ubuntu1.11","7.81.0-1ubuntu1.13","7.81.0-1ubuntu1.14","7.81.0-1ubuntu1.15","7.81.0-1ubuntu1.16","7.81.0-1ubuntu1.17","7.81.0-1ubuntu1.18","7.81.0-1ubuntu1.19","7.81.0-1ubuntu1.20","7.81.0-1ubuntu1.21","7.81.0-1ubuntu1.22"],"ecosystem_specific":{"priority_reason":"Curl developers have rated this as being low severity","availability":"No subscription required","binaries":[{"binary_name":"curl","binary_version":"7.81.0-1ubuntu1.23"},{"binary_name":"libcurl3-gnutls","binary_version":"7.81.0-1ubuntu1.23"},{"binary_name":"libcurl3-nss","binary_version":"7.81.0-1ubuntu1.23"},{"binary_name":"libcurl4","binary_version":"7.81.0-1ubuntu1.23"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0167.json"}},{"package":{"name":"curl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/curl@8.5.0-2ubuntu10.8?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.5.0-2ubuntu10.8"}]}],"versions":["8.2.1-1ubuntu3","8.2.1-1ubuntu3.1","8.4.0-2ubuntu1","8.5.0-2ubuntu1","8.5.0-2ubuntu2","8.5.0-2ubuntu8","8.5.0-2ubuntu9","8.5.0-2ubuntu10","8.5.0-2ubuntu10.1","8.5.0-2ubuntu10.2","8.5.0-2ubuntu10.3","8.5.0-2ubuntu10.4","8.5.0-2ubuntu10.5","8.5.0-2ubuntu10.6","8.5.0-2ubuntu10.7"],"ecosystem_specific":{"priority_reason":"Curl developers have rated this as being low severity","availability":"No subscription required","binaries":[{"binary_name":"curl","binary_version":"8.5.0-2ubuntu10.8"},{"binary_name":"libcurl3t64-gnutls","binary_version":"8.5.0-2ubuntu10.8"},{"binary_name":"libcurl4t64","binary_version":"8.5.0-2ubuntu10.8"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0167.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N"},{"type":"Ubuntu","score":"low"}]}