CVE-2021-22876
JSON

5.3medium

Automatic referer leaks credentials

Severity
5.3medium CVSS:3.1 by CISA-ADP
Exploit likelihood
5.30% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
CURL-CVE-2021-22876

Description

curl 7.1.1 to and including 7.75.0 is vulnerable to an "Exposure of Private Personal Information to an Unauthorized Actor" by leaking credentials in the HTTP Referer: header. libcurl does not strip off user credentials from the URL when automatically populating the Referer: HTTP request header field in outgoing HTTP requests, and therefore risks leaking sensitive data to the server that is the target of the second HTTP request.

Affected

Product or packageVersionsReported by
https://github.com/curl/curl7.1.1 to and including 7.75.0CVE List
https://github.com/curl/curl.gitfrom 7.1.1 before 7.76.0, from f30ffef477636dc10a72eb30590a84a0218e5935 before 7214288898f5625a6cc196e22a74232eada7861ccurl
haxx libcurlfrom 7.1.1 up to 7.75.0NVD
fedoraproject fedora32, 33, 34NVD
netapp hci_management_nodeNot specifiedNVD
netapp solidfireNot specifiedNVD
netapp hci_compute_nodeNot specifiedNVD
netapp hci_storage_nodeNot specifiedNVD
broadcom fabric_operating_systemNot specifiedNVD
debian debian_linux9.0NVD
siemens sinec_infrastructure_network_servicesbefore 1.0.1.1NVD
oracle communications_billing_and_revenue_management12.0.0.3.0NVD

All scores

CISA-ADP5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
curllow rating
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

CWE-200CWE-359

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

curl 7.1.1 to and including 7.75.0 is vulnerable to an "Exposure of Private Personal Information to an Unauthorized Actor" by leaking credentials in the HTTP Referer: header. libcurl does not strip off user credentials from the URL when automatically populating the Referer: HTTP request header field in outgoing HTTP requests, and therefore risks leaking sensitive data to the server that is the target of the second HTTP request.

curl

libcurl does not strip off user credentials from the URL when automatically populating the Referer: HTTP request header field in outgoing HTTP requests, and therefore risks leaking sensitive data to the server that is the target of the second HTTP request.

libcurl automatically sets the Referer: HTTP request header field in outgoing HTTP requests if the CURLOPT_AUTOREFERER option is set. With the curl tool, it is enabled with --referer ";auto".

NVD (es)

curl versiones 7.1.1 hasta 7.75.0 incluyéndola, es vulnerable a una "Exposure of Private Personal Information to an Unauthorized Actor" al filtrar credenciales en el encabezado HTTP Referer:. libcurl no elimina las credenciales de usuario de la URL cuando completa automáticamente el campo de encabezado de petición HTTP Referer: en peticiones HTTP salientes y, por lo tanto, corre el riesgo de filtrar datos confidenciales al servidor que es el objetivo de la segunda petición HTTP.

References

https://hackerone.com/reports/1101882exploit, issue-tracking, patch, third-party-advisory
https://curl.se/docs/CVE-2021-22876.htmlpatch, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ITVWPVGLFISU5BJC2BXBRYSDXTXE2YGC/mailing-list, third-party-advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KQUIOYX2KUU6FIUZVB5WWZ6JHSSYSQWJ/mailing-list, third-party-advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2ZC5BMIOKLBQJSFCHEDN2G2C2SH274BP/mailing-list, third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2021/05/msg00019.htmlmailing-list, third-party-advisory
https://security.gentoo.org/glsa/202105-36third-party-advisory, vendor-advisory
https://www.oracle.com//security-alerts/cpujul2021.htmlthird-party-advisory
https://security.netapp.com/advisory/ntap-20210521-0007/third-party-advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfpatch, third-party-advisory
https://cert-portal.siemens.com/productcert/html/ssa-389290.html
https://cert-portal.siemens.com/productcert/html/ssa-398330.html

Sources

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