5.7medium
Credential leak on redirect
- Severity
- 5.7medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.80% (higher than 79% of CVEs)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- CURL-CVE-2022-27774
Description
An insufficiently protected credentials vulnerability exists in curl 4.9 to and include curl 7.82.0 are affected that could allow an attacker to extract credentials when follows HTTP(S) redirects is used with authentication could leak credentials to other services that exist on different protocols or port numbers.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| https://github.com/curl/curl | curl 4.9 to and include curl 7.82.0 are affected | CVE List |
| https://github.com/curl/curl.git | from 4.9 before 7.83.0, from ae1912cb0d494b48d514d937826c9fe83ec96c4d before 139a54ed0a172adaaf1a78d6f4fff50b2c3f9e08 | curl |
| haxx curl | from 4.9 up to 7.82.0 | NVD |
| debian debian_linux | 10.0, 11.0 | NVD |
| netapp hci_bootstrap_os | Not specified | NVD |
| netapp clustered_data_ontap | Not specified | NVD |
| netapp solidfire_&_hci_management_node | Not specified | NVD |
| netapp solidfire_&_hci_storage_node | Not specified | NVD |
| broadcom fabric_operating_system | Not specified | NVD |
| netapp h300s_firmware | Not specified | NVD |
| netapp h500s_firmware | Not specified | NVD |
| netapp h700s_firmware | Not specified | NVD |
| netapp h410s_firmware | Not specified | NVD |
| splunk universal_forwarder | from 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0 | NVD |
All scores
| CISA-ADP | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| curl | medium rating | |
| NVD | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
An insufficiently protected credentials vulnerability exists in curl 4.9 to and include curl 7.82.0 are affected that could allow an attacker to extract credentials when follows HTTP(S) redirects is used with authentication could leak credentials to other services that exist on different protocols or port numbers.
curl
curl follows HTTP(S) redirects when asked to. curl also supports authentication. When a user and password are provided for a URL with a given hostname, curl makes an effort to not pass on those credentials to other hosts in redirects unless given permission with a special option.
This "same host check" has been flawed all since it was introduced. It does not work on cross protocol redirects and it does not consider different port numbers to be separate hosts. This leads to curl leaking credentials to other servers when it follows redirects from auth protected HTTP(S) URLs to other protocols and port numbers. It could also leak the TLS SRP credentials this way.
By default, curl only allows redirects to HTTP(S) and FTP(S), but can be asked to allow redirects to all protocols curl supports.
NVD (es)
Una vulnerabilidad de credenciales insuficientemente protegidas se presenta en curl versión 4.9 a e incluyen curl versión 7.82.0 están afectados que podría permitir a un atacante para extraer credenciales cuando sigue redireccionamientos HTTP(S) es usado con la autenticación podría filtrar credenciales a otros servicios que se presentan en diferentes protocolos o números de puerto
References
| https://hackerone.com/reports/1543773 | exploit, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20220609-0008/ | third-party-advisory | |
| https://www.debian.org/security/2022/dsa-5197 | third-party-advisory, vendor-advisory | |
| https://security.gentoo.org/glsa/202212-01 | third-party-advisory, vendor-advisory | |
| https://lists.debian.org/debian-lts-announce/2023/01/msg00028.html | mailing-list, third-party-advisory | |
| https://cert-portal.siemens.com/productcert/html/ssa-398330.html | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-27774 changed 2026-10-14 | CVE Terms of Use |
| curl | CURL-CVE-2022-27774 changed 2026-10-25 | MIT |
| NVD | CVE-2022-27774 changed 2026-10-14 | Public domain |