cve.bz

CVE-2021-22876

5.3 mediumExploit referenceEPSS 5.3%Fix available

Medium (5.3). EPSS 5.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
5.3% (unchanged from 5.3% a week ago; 5.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-06-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-359 Exposure of Private Personal Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-22876 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22876?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22876?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-22876 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-22876

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-22876](https://cve.bz/cve/badge/CVE-2021-22876.svg)](https://cve.bz/cve/CVE-2021-22876)

HTML:

<a href="https://cve.bz/cve/CVE-2021-22876"><img src="https://cve.bz/cve/badge/CVE-2021-22876.svg" alt="CVE-2021-22876"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
haxx:libcurlfrom 7.1.1 through 7.75.0
fedoraproject:fedora32
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux9.0
siemens:sinec_infrastructure_network_servicesbefore 1.0.1.1
oracle:communications_billing_and_revenue_management12.0.0.3.0
oracle:essbase21.2
splunk:universal_forwarderfrom 8.2.0 before 8.2.12
splunk:universal_forwarderfrom 9.0.0 before 9.0.6
splunk:universal_forwarder9.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9curl7.52.1-5+deb9u14DLA-2664-1
Debian10curl7.64.0-4+deb10u2DSA-4881-1
Debian12, 13, 14curl7.74.0-1.2DEBIAN-CVE-2021-22876
Ubuntu16.04:LTScurl7.47.0-1ubuntu2.19UBUNTU-CVE-2021-22876 USN-4898-1
Ubuntu18.04:LTScurl7.58.0-2ubuntu3.13UBUNTU-CVE-2021-22876 USN-4898-1
Ubuntu20.04:LTScurl7.68.0-1ubuntu2.5UBUNTU-CVE-2021-22876 USN-4898-1
UbuntuPro:14.04:LTScurl7.35.0-1ubuntu2.20+esm7UBUNTU-CVE-2021-22876 USN-4903-1
Red Hatenterprise_linux:8::baseoscurl, libcurl, libcurl-devel and 6 more0:7.61.1-22.el8RHSA-2021:4511
Red Hatjboss_core_services:1::el7jbcs-httpd24, jbcs-httpd24-runtime0:1-18.jbcs.el7RHSA-2021:2472
Red Hatjboss_core_services:1::el7jbcs-httpd24-apr, jbcs-httpd24-apr-devel, jbcs-httpd24-apr-debuginfo0:1.6.3-105.jbcs.el7RHSA-2021:2472
Red Hatjboss_core_services:1::el7jbcs-httpd24-apr-util, jbcs-httpd24-apr-util-nss, jbcs-httpd24-apr-util-ldap and 7 more0:1.6.1-82.jbcs.el7RHSA-2021:2472
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:7.77.0-2.jbcs.el7RHSA-2021:2472
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.37-74.jbcs.el7RHSA-2021:2472
Red Hatjboss_core_services:1::el7jbcs-httpd24-jansson, jbcs-httpd24-jansson-devel, jbcs-httpd24-jansson-debuginfo0:2.11-55.jbcs.el7RHSA-2021:2472
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_cluster-native, jbcs-httpd24-mod_cluster-native-debuginfo0:1.3.16-5.Final_redhat_2.jbcs.el7RHSA-2021:2472
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.7-17.jbcs.el7RHSA-2021:2472
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_jk, jbcs-httpd24-mod_jk-ap24, jbcs-httpd24-mod_jk-manual and 1 more0:1.2.48-16.redhat_1.jbcs.el7RHSA-2021:2472
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_md, jbcs-httpd24-mod_md-debuginfo1:2.0.8-36.jbcs.el7RHSA-2021:2472
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_security, jbcs-httpd24-mod_security-debuginfo0:2.9.2-63.GA.jbcs.el7RHSA-2021:2472
19 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 morecurl7.60.0-3.42.1SUSE-SU-2021:1809-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2curl7.66.0-4.14.1SUSE-SU-2021:1006-1
SUSELinux Enterprise Server 11-SECURITYcurl-openssl17.37.0-70.60.1SUSE-SU-2021:14707-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4, OpenStack Cloud 9 and 1 morecurl7.60.0-4.20.1SUSE-SU-2021:1786-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5curl7.60.0-11.15.1SUSE-SU-2021:1396-1
openSUSELeap 15.2curl, curl-mini7.66.0-lp152.3.15.1openSUSE-SU-2021:0510-1
openSUSETumbleweedcurl7.79.1-1.1openSUSE-SU-2024:10582-1
AlmaLinux8curl, libcurl, libcurl-devel and 1 more7.61.1-22.el8ALSA-2021:4511
Rocky Linux8curl0:7.61.1-22.el8RLSA-2021:4511
Alpinev3.12, v3.13, v3.14 and 10 morecurl7.76.0-r0ALPINE-CVE-2021-22876

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

This issue can be avoided by using at least one of the following recommendations:

* Do not enable automatic generation of Referer headers when redirects are followed. This functionality is not enabled by default. In the curl command line tool, it is enabled using the -e ';auto' or --referer ';auto' command line options. In the libcurl library, it is enabled using the CURLOPT_AUTOREFERER option.

* Do not include authentication credentials in URLs (in the form of https://username:password@example.com), use other methods to provide authentication credentials to curl / libcurl. For the curl command line tool, use -u or --user command line option. For the libcurl library, use CURLOPT_USERPWD or CURLOPT_USERNAME / CURLOPT_PASSWORD options.

ProductPackageStateAdvisory
JBoss Core Services Apache HTTP Server 2.4.37 SP8jbcs-httpd24-curlFixed 2021-06-17RHSA-2021:2471
JBoss Core Services for RHEL 8jbcs-httpd24-0:1-18.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-apr-0:1.6.3-105.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-apr-util-0:1.6.1-82.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-brotli-0:1.0.6-40.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-curl-0:7.77.0-2.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-httpd-0:2.4.37-74.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-jansson-0:2.11-55.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-mod_cluster-native-0:1.3.16-5.Final_redhat_2.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-mod_http2-0:1.15.7-17.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-mod_jk-0:1.2.48-16.redhat_1.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-mod_md-1:2.0.8-36.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-mod_security-0:2.9.2-63.GA.el8jbcsFixed 2021-06-17RHSA-2021:2472
JBoss Core Services for RHEL 8jbcs-httpd24-nghttp2-0:1.39.2-37.el8jbcsFixed 2021-06-17RHSA-2021:2472
.NET Core 2.1 on Red Hat Enterprise Linuxrh-dotnet21-curlWill not fix
Red Hat Ceph Storage 2curlOut of support scope
Red Hat Enterprise Linux 6curlOut of support scope
Red Hat Enterprise Linux 7curlOut of support scope
Red Hat Enterprise Linux 9curlNot affected
Red Hat Software Collectionshttpd24-curlWill not fix
16 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-22876.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-22-069-09Siemens SINEC INS2022-03-08MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON