CVE-2021-22945
Reported by hackerone · Published September 23, 2021
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*.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libcurl | Amazon Linux | 7.79.1-1.amzn2.0.1 |
| lib32-libcurl-compat | Arch Linux | 7.79.0-1 |
| libcurl-devel | Amazon Linux | 7.79.1-1.amzn2.0.1 |
| lib32-curl | Arch Linux | 7.79.0-1 |
| lib32-libcurl-gnutls | Arch Linux | 7.79.0-1 |
| libcurl | conan.io | 7.78.0 |
| libcurl-compat | Arch Linux | 7.79.0-1 |
| libcurl-gnutls | Arch Linux | 7.79.0-1 |
| curl | Arch Linux | 7.79.0-1 |
| mysql_server | oracle | 8.0.26, 5.7.35 |
| sinec_ins | siemens | 1.0.1.1 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
6 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | curl 7.73.0 to and including 7.78.0 |
| amazon:2 | libcurl | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| arch | lib32-libcurl-compat | 0 |
| amazon:2 | libcurl-devel | 0 |
| arch | lib32-curl | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| arch | lib32-libcurl-gnutls | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| arch | libcurl-compat | 0 |
| arch | libcurl-gnutls | 0 |
| ConanCenter | libcurl | 7.73.0 |
| arch | curl | 0 |
| n/a | https://github.com/curl/curl | 7.73.0 |
| alpine | curl | 0 |
| amazon:2 | curl | 0 |
Timeline
- Sep 15, 2021 PoC Published (2 in total, the first dated here)
- Sep 23, 2021 CVE Published
- Sep 24, 2021 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (14 in total, the first dated here)
- Mar 7, 2026 Security Advisory (20 in total, the first dated here)
- Aug 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-22945
vulnetix vdb fixes CVE-2021-22945
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-22945/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2021-fc96a3a749 vendor-advisory
- FEDORA-2021-1d24845e93 vendor-advisory
- 20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3 mailing-list
- DSA-5197 vendor-advisory
- GLSA-202212-01 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2021-22945 advisory
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url