Skip to main content
Public proof of conceptFix available

CVE-2022-32221

A public proof of concept exists; no exploitation attested.

  • Published2022-12-05
  • Fixed in9.0.6 · 8.2.12
  • WeaknessCWE-200 · CWE-668

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 doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data to send, even when the `CURLOPT_POSTFIELDS` option has been set, if the same handle previously was used to issue a `PUT` request which used that callback. This flaw may surprise the application and cause it to misbehave and either send off the wrong data or use memory after free or similar in the subsequent `POST` request. The problem exists in the logic for a reused handle when it is changed from a PUT to a POST.

Timeline

dates in UTC
  1. 2022-12-0522: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
Debian debian linux
BranchAffectedFixed in
10.0= 10.0no fix published
11.0= 11.0no fix published
Apple macos
BranchAffectedFixed in
12.6< 12.6.312.6.3

6 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
    • = Fixed in 7.86.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2023-05-17

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

  • curlWolfiall versions · fixed in 7.86.0-r0
  • curlUbuntu:Pro:16.04:LTSall versions · fixed in 7.47.0-1ubuntu2.19+esm6
  • curlUbuntu:Pro:14.04:LTSall versions · fixed in 7.35.0-1ubuntu2.20+esm13
  • curlUbuntu:22.04:LTSall versions · fixed in 7.81.0-1ubuntu1.6
  • curlUbuntu:20.04:LTSall versions · fixed in 7.68.0-1ubuntu2.14
  • curlUbuntu:18.04:LTSall versions · fixed in 7.58.0-2ubuntu3.21
  • curlSUSE:OpenStack Cloud Crowbar 9all versions · fixed in 7.60.0-4.43.1
  • curlSUSE:OpenStack Cloud 9all versions · fixed in 7.60.0-4.43.1

87 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-32221 Red Hat Product Security160 products fixed

    curl: POST following PUT confusion

  • 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

  • RHSA-2023:4139 Red Hat Product Security74 products fixed

    Red Hat Security Advisory: curl security update

  • ICSA-23-131-05 CISA1 known affected

    Siemens SINEC NMS Third-Party

    SINEC NMS

  • SSA-892048 Siemens ProductCERT1 known affected

    SSA-892048: Third-Party Component Vulnerabilities in SINEC NMS before V1.0.3.1

    SINEC NMS

3 more advisories

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 Red Hat Product Security RHSA-2023:4139 · 74 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix CISA ICSA-23-131-05 · 1 productUpdate to V1.0.3.1 or later version
  6. Vendor fix Siemens ProductCERT SSA-892048 · 1 productUpdate to V1.0.3.1 or later version
  7. Vendor fix Red Hat Product Security RHSA-2022:8840 · 11 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Applications using the APR libraries, such as httpd, must be restarted for this update to take effect. After installing the updated packages, the http…

Detection

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

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2022-12-05
Last modified
2026-10-14
NVD status
Modified
GitHub advisory
GHSA-grfr-78m7-q35q

Frequently asked questions

What is CVE-2022-32221?

When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data to send, even when the `CURLOPT_POSTFIELDS` option has been set, if the same handle previously was used to issue a `PUT` request which used that callback. This flaw may surprise the application and cause it to misbehave and either send off the wrong data or use memory after free or similar in the subsequent `POST` request. The problem exists in the logic for a reused handle when it is changed from a PUT to a POST.

Is CVE-2022-32221 actively exploited?

A proof-of-concept exploit exists for CVE-2022-32221, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-32221?

CVE-2022-32221 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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 checks · 250 API requests/month

Sources for this record