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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| https://github.com/curl/curl.git | from 6.0 before 7.58.0, from ae1912cb0d494b48d514d937826c9fe83ec96c4d before af32cd3859336ab963591ca0df9b1e33a7ee066b | curl |
| haxx curl | from 7.1 up to 7.57.0 | NVD |
| debian debian_linux | 7.0, 8.0, 9.0 | NVD |
| canonical ubuntu_linux | 12.04, 14.04, 16.04, 17.10 | NVD |
| redhat enterprise_linux_desktop | 7.0 | NVD |
| redhat enterprise_linux_server | 7.0 | NVD |
| redhat enterprise_linux_server_aus | 7.4 | NVD |
| redhat enterprise_linux_server_eus | 7.4, 7.5 | NVD |
| redhat enterprise_linux_workstation | 7.0 | NVD |
| fujitsu m10-1_firmware | before xcp2361, before xcp3070 | NVD |
| fujitsu m10-4_firmware | before xcp2361, before xcp3070 | NVD |
| fujitsu m10-4s_firmware | before xcp2361, before xcp3070 | NVD |
| fujitsu m12-1_firmware | before xcp2361, before xcp3070 | NVD |
| fujitsu m12-2_firmware | before xcp2361, before xcp3070 | NVD |
| fujitsu m12-2s_firmware | before xcp2361, before xcp3070 | NVD |
All scores
| curl | low rating | |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.0medium CVSS:2.0 | AV: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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2018-1000007 changed 2024-08-05 | CVE Terms of Use |
| curl | CURL-CVE-2018-1000007 changed 2026-10-25 | MIT |
| NVD | CVE-2018-1000007 changed 2026-06-17 | Public domain |