CVE-2022-27774
JSON

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 packageVersionsReported by
https://github.com/curl/curlcurl 4.9 to and include curl 7.82.0 are affectedCVE List
https://github.com/curl/curl.gitfrom 4.9 before 7.83.0, from ae1912cb0d494b48d514d937826c9fe83ec96c4d before 139a54ed0a172adaaf1a78d6f4fff50b2c3f9e08curl
haxx curlfrom 4.9 up to 7.82.0NVD
debian debian_linux10.0, 11.0NVD
netapp hci_bootstrap_osNot specifiedNVD
netapp clustered_data_ontapNot specifiedNVD
netapp solidfire_&_hci_management_nodeNot specifiedNVD
netapp solidfire_&_hci_storage_nodeNot specifiedNVD
broadcom fabric_operating_systemNot specifiedNVD
netapp h300s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD
netapp h700s_firmwareNot specifiedNVD

All scores

CISA-ADP5.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
curlmedium rating
NVD5.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
NVD3.5low CVSS:2.0AV:N/AC:M/Au:S/C:P/I:N/A:N

Classification

CWE-522

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

Sources

SourceRecordLicence
CVE ListCVE-2022-27774 changed 2026-10-14CVE Terms of Use
curlCURL-CVE-2022-27774 changed 2026-10-25MIT
NVDCVE-2022-27774 changed 2026-10-14Public domain