Vulnerability · Published Apr 1, 2021 · Assigned by hackerone
CVE-2021-22876
Medium 5.3
In plain English
A medium-severity security flaw in https://github.com/curl/curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 5.3% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | curl | 7.61.1-22.el8 | ALSA-2021:4511 |
| AlmaLinux:8 | libcurl | 7.61.1-22.el8 | ALSA-2021:4511 |
| AlmaLinux:8 | libcurl-devel | 7.61.1-22.el8 | ALSA-2021:4511 |
| AlmaLinux:8 | libcurl-minimal | 7.61.1-22.el8 | ALSA-2021:4511 |
| Alpine:v3.20 | curl | 7.76.0-r0 | ALPINE-CVE-2021-22876 |
| Alpine:v3.21 | curl | 7.76.0-r0 | ALPINE-CVE-2021-22876 |
| Alpine:v3.22 | curl | 7.76.0-r0 | ALPINE-CVE-2021-22876 |
| Alpine:v3.23 | curl | 7.76.0-r0 | ALPINE-CVE-2021-22876 |
| Alpine:v3.24 | curl | 7.76.0-r0 | ALPINE-CVE-2021-22876 |
| Debian:12 | curl | 7.74.0-1.2 | DEBIAN-CVE-2021-22876 |
| Debian:13 | curl | 7.74.0-1.2 | DEBIAN-CVE-2021-22876 |
| Debian:14 | curl | 7.74.0-1.2 | DEBIAN-CVE-2021-22876 |
| Rocky Linux:8 | curl | 0:7.61.1-22.el8 | RLSA-2021:4511 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | 7.1.1 to and including 7.75.0 |
Weakness: CWE-359 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://hackerone.com/reports/1101882 x_refsource_MISC
- https://curl.se/docs/CVE-2021-22876.html x_refsource_MISC
- FEDORA-2021-cab5c9befb vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-065371f385 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-26a293c72b vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20210517 [SECURITY] [DLA 2664-1] curl security update mailing-list, x_refsource_MLIST
- GLSA-202105-36 vendor-advisory, x_refsource_GENTOO
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210521-0007/ x_refsource_CONFIRM
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf x_refsource_CONFIRM
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html