CVE-2018-1000007
JSON

9.8critical

HTTP authentication leak in redirects

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
9.91% (higher than 95% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
CURL-CVE-2018-1000007

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
https://github.com/curl/curl.gitfrom 6.0 before 7.58.0, from ae1912cb0d494b48d514d937826c9fe83ec96c4d before af32cd3859336ab963591ca0df9b1e33a7ee066bcurl
haxx curlfrom 7.1 up to 7.57.0NVD
debian debian_linux7.0, 8.0, 9.0NVD
canonical ubuntu_linux12.04, 14.04, 16.04, 17.10NVD
redhat enterprise_linux_desktop7.0NVD
redhat enterprise_linux_server7.0NVD
redhat enterprise_linux_server_aus7.4NVD
redhat enterprise_linux_server_eus7.4, 7.5NVD
redhat enterprise_linux_workstation7.0NVD
fujitsu m10-1_firmwarebefore xcp2361, before xcp3070NVD
fujitsu m10-4_firmwarebefore xcp2361, before xcp3070NVD

All scores

curllow rating
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

What each source says

CVE List

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.

curl

curl might leak authentication data to third parties.

When asked to send custom headers in its HTTP requests, curl sends 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 curl-using client's request.

NVD (es)

libcurl, desde la versión 7.1 hasta la 7.57.0, podría filtrar accidentalmente datos de autenticación a terceros. Cuando se le solicita que envíe cabeceras personalizadas en sus peticiones HTTP, libcurl enviará primero ese conjunto de cabeceras al host en la URL inicial pero también, si se le pide que siga redirecciones y se devuelve un código de respuesta HTTP 30X al host mencionado en la URL en el valor de la cabecera de respuesta "Location:". El envío de la misma serie de cabeceras a hosts subsecuentes es un problema en particular para las aplicaciones que pasan cabeceras "Authorization:" personalizadas, ya que esta cabecera suele contener información sensible de privacidad o datos que podrían permitir que otros suplanten la petición del cliente que emplea libcurl.

References

https://usn.ubuntu.com/3554-2/third-party-advisory, vendor-advisory
https://usn.ubuntu.com/3554-1/third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2018:3558third-party-advisory, vendor-advisory
https://www.debian.org/security/2018/dsa-4098third-party-advisory, vendor-advisory
https://curl.haxx.se/docs/adv_2018-b3bf.htmlpatch, vendor-advisory
http://www.securitytracker.com/id/1040274third-party-advisory, vdb-entry
https://access.redhat.com/errata/RHSA-2018:3157third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2018/01/msg00038.htmlmailing-list, third-party-advisory
https://access.redhat.com/errata/RHBA-2019:0327third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2019:1543third-party-advisory, vendor-advisory
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.htmlpatch, third-party-advisory
https://access.redhat.com/errata/RHSA-2020:0544third-party-advisory, vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2018-1000007 changed 2024-08-05CVE Terms of Use
curlCURL-CVE-2018-1000007 changed 2026-10-25MIT
NVDCVE-2018-1000007 changed 2026-06-17Public domain