VDB

CVE-2021-22945

CVE-2021-22945 PUBLISHED CVSS 9.100000381469727 CRITICAL

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.

PackageEcosystemFixed in
libcurlAmazon Linux7.79.1-1.amzn2.0.1
lib32-libcurl-compatArch Linux7.79.0-1
libcurl-develAmazon Linux7.79.1-1.amzn2.0.1
lib32-curlArch Linux7.79.0-1
lib32-libcurl-gnutlsArch Linux7.79.0-1
libcurlconan.io7.78.0
libcurl-compatArch Linux7.79.0-1
libcurl-gnutlsArch Linux7.79.0-1
curlArch Linux7.79.0-1
mysql_serveroracle8.0.26, 5.7.35
sinec_inssiemens1.0.1.1
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPSiemens3.1.5

6 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.100000381469727
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Affected products

VendorProductVersions
n/ahttps://github.com/curl/curlcurl 7.73.0 to and including 7.78.0
amazon:2libcurl0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
archlib32-libcurl-compat0
amazon:2libcurl-devel0
archlib32-curl0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
archlib32-libcurl-gnutls0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
archlibcurl-compat0
archlibcurl-gnutls0
ConanCenterlibcurl7.73.0
archcurl0
n/ahttps://github.com/curl/curl7.73.0
alpinecurl0
amazon:2curl0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›