CVE-2018-1000007
curl: HTTP authentication leak in redirects
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Amazon (medium), Oracle (medium), Ubuntu (medium).
Description
libcurl 7.1 through 7.57.0 might accidentally leak authentication data to third parties. When asked to send custom headers in its HTTP requests, libcurl will send that set of headers first to the host in the initial URL but also, if asked to follow redirects and a 30X HTTP response code is returned, to the host mentioned in URL in the `Location:` response header value. Sending the same set of headers to subsequent hosts is in particular a problem for applications that pass on custom `Authorization:` headers, as this header often contains privacy sensitive information or data that could allow others to impersonate the libcurl-using client's request.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | curl | 7.58.0-1.ph1 |
| Photon OS 2.0 | curl | 7.58.0-1.ph2 |
| amazon linux 1 | curl, curl-debuginfo, libcurl and 1 more | 7.53.1-14.81.amzn1 |
| amazon linux 2 | curl, curl-debuginfo, libcurl and 3 more | 7.55.1-9.amzn2.0.1 and 1 more |
| debian 11 | curl | 7.58.0-1 |
| debian 12 | curl | 7.58.0-1 |
| debian 13 | curl | 7.58.0-1 |
| debian 14 | curl | 7.58.0-1 |
| debian 7 | curl | 7.26.0-1+wheezy24 |
| debian 8 | curl | 7.38.0-4+deb8u9 |
| debian 9 | curl | 7.52.1-5+deb9u4 |
| echo | curl | 7.58.0-1 |
Show all 38 entries from 22 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | curl | 7.58.0-1.ph1 |
| Photon OS 2.0 | curl | 7.58.0-1.ph2 |
| amazon linux 1 | curl | 7.53.1-14.81.amzn1 |
| amazon linux 1 | curl-debuginfo | 7.53.1-14.81.amzn1 |
| amazon linux 1 | libcurl | 7.53.1-14.81.amzn1 |
| amazon linux 1 | libcurl-devel | 7.53.1-14.81.amzn1 |
| amazon linux 2 | curl | 7.55.1-9.amzn2.0.1 |
| amazon linux 2 | curl-debuginfo | 7.55.1-9.amzn2.0.1 |
| amazon linux 2 | libcurl | 7.55.1-9.amzn2.0.1 |
| amazon linux 2 | libcurl-devel | 7.55.1-9.amzn2.0.1 |
| amazon linux 2 | nss-pem | 1.0.3-5.amzn2 |
| amazon linux 2 | nss-pem-debuginfo | 1.0.3-5.amzn2 |
| debian 11 | curl | 7.58.0-1 |
| debian 12 | curl | 7.58.0-1 |
| debian 13 | curl | 7.58.0-1 |
| debian 14 | curl | 7.58.0-1 |
| debian 7 | curl | 7.26.0-1+wheezy24 |
| debian 8 | curl | 7.38.0-4+deb8u9 |
| debian 9 | curl | 7.52.1-5+deb9u4 |
| echo | curl | 7.58.0-1 |
| Oracle Linux 7 | curl | 7.29.0-51.el7 |
| Oracle Linux 7 | libcurl | 7.29.0-51.el7 |
| Oracle Linux 7 | libcurl-devel | 7.29.0-51.el7 |
| Oracle Linux 7 | nss-pem | 1.0.3-5.el7 |
| Red Hat | curl | no fix listed |
| Red Hat | libcurl | no fix listed |
| Red Hat | libcurl-devel | no fix listed |
| Red Hat | rh-dotnet21-curl | no fix listed |
| Red Hat | rh-dotnet21-libcurl | no fix listed |
| Red Hat | rh-dotnet21-libcurl-devel | no fix listed |
| root.io debian 11 | rootio-curl | 7.58.0-1 |
| root.io debian 12 | rootio-curl | 7.58.0-1 |
| root.io debian 13 | rootio-curl | 7.58.0-1 |
| ubuntu 14.04 | curl | 7.35.0-1ubuntu2.14 |
| ubuntu 14.04-ESM | curl | 7.35.0-1ubuntu2.14 |
| ubuntu 16.04 | curl | 7.47.0-1ubuntu2.6 |
| ubuntu 16.04-ESM | curl | 7.47.0-1ubuntu2.6 |
| ubuntu 17.10 | curl | 7.55.1-1ubuntu2.3 |
References
- http://www.openwall.com/lists/oss-security/2022/04/27/4
- http://www.securitytracker.com/id/1040274
- https://access.redhat.com/errata/RHBA-2019:0327
- https://access.redhat.com/errata/RHSA-2018:3157
- https://access.redhat.com/errata/RHSA-2018:3558
- https://access.redhat.com/errata/RHSA-2019:1543
- https://access.redhat.com/errata/RHSA-2020:0544
- https://access.redhat.com/errata/RHSA-2020:0594
All 21 references
- https://access.redhat.com/security/cve/CVE-2018-1000007
- https://curl.haxx.se/docs/adv_2018-b3bf.html
- https://linux.oracle.com/cve/CVE-2018-1000007.html
- https://linux.oracle.com/errata/ELSA-2018-3157.html
- https://lists.debian.org/debian-lts-announce/2018/01/msg00038.html
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000007
- https://ubuntu.com/security/notices/USN-3554-1
- https://ubuntu.com/security/notices/USN-3554-2
- https://usn.ubuntu.com/3554-1/
- https://usn.ubuntu.com/3554-2/
- https://www.cve.org/CVERecord?id=CVE-2018-1000007
- https://www.debian.org/security/2018/dsa-4098
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html