# CVE-2021-22876: Automatic referer leaks credentials

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.30%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-31T08:00:00.000Z
- Modified: 2026-10-25T01:05:06.250Z
- Also known as: CURL-CVE-2021-22876
- Weaknesses: CWE-200, CWE-359
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- https://github.com/curl/curl: 7.1.1 to and including 7.75.0
- https://github.com/curl/curl.git: from 7.1.1 before 7.76.0; from f30ffef477636dc10a72eb30590a84a0218e5935 before 7214288898f5625a6cc196e22a74232eada7861c
- haxx libcurl: from 7.1.1 up to 7.75.0
- fedoraproject fedora: 32; 33; 34
- netapp hci_management_node: no versions given
- netapp solidfire: no versions given
- netapp hci_compute_node: no versions given
- netapp hci_storage_node: no versions given
- broadcom fabric_operating_system: no versions given
- debian debian_linux: 9.0
- siemens sinec_infrastructure_network_services: before 1.0.1.1
- oracle communications_billing_and_revenue_management: 12.0.0.3.0
- oracle essbase: 21.2
- splunk universal_forwarder: from 8.2.0 before 8.2.12; from 9.0.0 before 9.0.6; 9.1.0

## Every score

- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- curl: rating Low
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://hackerone.com/reports/1101882> (exploit, issue-tracking, patch, third-party-advisory)
- <https://curl.se/docs/CVE-2021-22876.html> (patch, 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.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202105-36> (third-party-advisory, vendor-advisory)
- <https://www.oracle.com//security-alerts/cpujul2021.html> (third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210521-0007/> (third-party-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf> (patch, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-389290.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2021-22876](https://www.cve.org/CVERecord?id=CVE-2021-22876), CVE Terms of Use, modified 2026-10-14
- curl: [CURL-CVE-2021-22876](https://osv.dev/vulnerability/CURL-CVE-2021-22876), MIT, modified 2026-10-25
- NVD: [CVE-2021-22876](https://nvd.nist.gov/vuln/detail/CVE-2021-22876), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2021-22876 · Whole record: https://cve.day/CVE-2021-22876.json · Rebuilt by cve.day 2026-11-25T22:58:00.550Z
