Vulnerability · Published Sep 23, 2021 · Assigned by hackerone
CVE-2021-22945
Critical 9.1
In plain English
A critical-severity double free in https://github.com/curl/curl. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.7% (higher than 94% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)6.7%top 6.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
When sending data to an MQTT server, libcurl <= 7.73.0 and 7.78.0 could in some circumstances erroneously keep a pointer to an already freed memory area and both use that again in a subsequent call to send data and also free it *again*.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 7.79.0-r0 | ALPINE-CVE-2021-22945 |
| Alpine:v3.21 | curl | 7.79.0-r0 | ALPINE-CVE-2021-22945 |
| Alpine:v3.22 | curl | 7.79.0-r0 | ALPINE-CVE-2021-22945 |
| Alpine:v3.23 | curl | 7.79.0-r0 | ALPINE-CVE-2021-22945 |
| Alpine:v3.24 | curl | 7.79.0-r0 | ALPINE-CVE-2021-22945 |
| Debian:12 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22945 |
| Debian:13 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22945 |
| Debian:14 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22945 |
| Ubuntu:22.04:LTS | curl | 7.74.0-1.3ubuntu2 | UBUNTU-CVE-2021-22945 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | curl 7.73.0 to and including 7.78.0 |
Weakness: CWE-415 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
References
- https://hackerone.com/reports/1269242
- FEDORA-2021-fc96a3a749 vendor-advisory
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://security.netapp.com/advisory/ntap-20211029-0003/
- FEDORA-2021-1d24845e93 vendor-advisory
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://support.apple.com/kb/HT213183
- 20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3 mailing-list
- DSA-5197 vendor-advisory
- GLSA-202212-01 vendor-advisory
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html