Skip to main content
No exploitation reportedFix available

CVE-2021-22945

No exploitation reported by the sources we read.

  • Published2021-09-23
  • Fixed in9.0.6 · 8.2.12
  • WeaknessCWE-415

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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*.

Timeline

dates in UTC
  1. 2021-09-2313:15CVE publishedNVD

Versions per branch

NVD
Splunk universal forwarder
BranchAffectedFixed in
9.0≥ 9.0.0, < 9.0.69.0.6
8.2≥ 8.2.0, < 8.2.128.2.12
9.1= 9.1.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
33.x= 33no fix published
35.x= 35no fix published
Oracle mysql server
BranchAffectedFixed in
5.7≥ 5.7.0, ≤ 5.7.35no fix published
8.0≥ 8.0.0, ≤ 8.0.26no fix published

14 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As hackerone, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • https://github.com/curl/curl
    Affected
    • = curl 7.73.0 to and including 7.78.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2022-12-19

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • curlUbuntu:22.04:LTSall versions · fixed in 7.74.0-1.3ubuntu2
  • curlUbuntu:20.04:LTSall versions · fixed in 7.68.0-1ubuntu2.7
  • curlUbuntu:18.04:LTSall versions · fixed in 7.58.0-2ubuntu3.15
  • curlopenSUSE:Tumbleweedall versions · fixed in 7.79.1-1.1
  • curlopenEuler:20.03-LTS-SP2all versions · fixed in 7.71.1-11.oe1
  • curlopenEuler:20.03-LTS-SP1all versions · fixed in 7.71.1-11.oe1
  • curlMageia:8all versions · fixed in 7.74.0-1.4.mga8
  • curlDebian:14all versions · fixed in 7.79.1-1

19 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-22945 Red Hat Product Security5 known affected

    curl: use-after-free and double-free in MQTT sending

    rh-dotnet21-curl.src as a component of .NET Core 2.1 on Red Hat Enterprise Linux · rh-dotnet21-libcurl as a component of .NET Core 2.1 on Red Hat Enterprise Linux · rh-dotnet21-libcurl-devel as a component of .NET Core 2.1 on Red Hat Enterprise Linux · +2 more

  • ICSA-23-348-10 CISA5 known affected

    Siemens SIMATIC S7-1500

    SIMATIC 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) · +2 more

  • SSA-398330 Siemens ProductCERT5 known affected

    SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more

  • ICSA-22-069-09 CISA1 known affected

    Siemens SINEC INS

    SINEC INS

  • SSA-389290 Siemens ProductCERT1 known affected

    SSA-389290: Third-Party Component Vulnerabilities in SINEC INS

    SINEC INS

Full record on NVD

Fix

  1. Update Splunk universal forwarder to 9.0.6 · 8.2.12
  2. Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
  3. Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
  4. Vendor fix Siemens ProductCERT SSA-389290 · 1 productUpdate to V1.0.1.1 or later version
  5. Vendor fix CISA ICSA-22-069-09 · 1 productUpdate to V1.0.1.1 or later version
  6. Mitigation from the vendor CISA ICSA-23-348-10 · 5 productsOnly build and run applications from trusted sources.
  7. No fix planned, says the vendor Red Hat Product Security CVE-2021-22945 · 5 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2024-03-28
  • CISA-ADPCVSS 3.19.12025-06-09
  • NVDCVSS 3.19.1read 2026-10-23
  • NVDCVSS 2.05.8read 2026-10-23
  • CISA-ADPweakness (CWE)CWE-4152025-06-09
  • CNAweakness (CWE)CWE-415known since 2026-10-23
  • NVDweakness (CWE)CWE-415read 2026-10-23
  • FIRST EPSSEPSS score6.7 %2026-11-08
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Published
2021-09-23
Last Modified
2026-10-14
NVD status
Modified
GitHub Advisory
GHSA-22mx-9r92-42g8

Frequently asked questions

What is CVE-2021-22945?

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*.

Is CVE-2021-22945 actively exploited?

Active exploitation of CVE-2021-22945 has not been confirmed. Its EPSS score was 6.7% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-22945?

CVE-2021-22945 has a CVSS v3 base score of 9.1 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.

Running curl? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record