Skip to content
Fencer Vulns
critical 9.8

CVE-2022-32221 json

When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data to send, even when t…

published 2022-12-05 3 y ago modified 2026-10-14 25 d ago also EUVD-2022-53422 , JLSEC-2026-396

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
5.1%
EPSS 5.1% chance of exploitation in 30 days, percentile 92%
public exploits
0
none known

Summary

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.

Patch / fix

  • julia CURL_jll 8.5.0+0
  • julia LibCURL_jll 7.87.0+0
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
  • curl Debian 14, Debian 13, Debian 12 7.86.0-1

debian advisories DEBIAN-CVE-2022-32221

  • curl Ubuntu 18.04 LTS 7.58.0-2ubuntu3.21
  • curl Ubuntu 20.04 LTS 7.68.0-1ubuntu2.14
  • curl Ubuntu 22.04 LTS 7.81.0-1ubuntu1.6
  • curl Ubuntu Pro 14.04 LTS 7.35.0-1ubuntu2.20+esm13
  • curl Ubuntu Pro 16.04 LTS 7.47.0-1ubuntu2.19+esm6

ubuntu advisories UBUNTU-CVE-2022-32221

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • jbcs-httpd24-curl jboss core services 1 7.86.0-2.el7jbcs
  • jbcs-httpd24-curl jboss core services 1 7.86.0-2.el8jbcs
  • jbcs-httpd24-httpd jboss core services 1 2.4.51-37.el7jbcs
  • jbcs-httpd24-httpd jboss core services 1 2.4.51-37.el8jbcs
  • jbcs-httpd24-libcurl jboss core services 1 7.86.0-2.el7jbcs
  • jbcs-httpd24-libcurl jboss core services 1 7.86.0-2.el8jbcs
  • jbcs-httpd24-mod_ssl jboss core services 1 1:2.4.51-37.el7jbcs
  • jbcs-httpd24-mod_ssl jboss core services 1 1:2.4.51-37.el8jbcs

red hat advisories RHSA-2022:8840RHSA-2023:4139RHSA-2023:0333

  • curl SLE Module for Basesystem 15 SP4, SLE Micro 5.3, openSUSE Leap 15.4 7.79.1-150400.5.9.1
  • curl SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +7 more 7.60.0-150000.38.1
  • curl SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLES 15 SP2-BCL +11 more 7.66.0-150200.4.42.1
  • curl SLES for SAP 12 SP4, SLES 12 SP4-LTSS, OpenStack Cloud Crowbar 9 +1 more 7.60.0-4.43.1
  • curl SLES 12 SP3-BCL, SLES 12 SP2-BCL 7.37.0-37.85.1
  • curl SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 7.60.0-11.49.1

suse advisories SUSE-SU-2022:3785-1SUSE-SU-2022:3774-1SUSE-SU-2022:3773-1SUSE-SU-2022:3772-1SUSE-SU-2022:3770-1SUSE-SU-2022:3769-1

  • curl openSUSE Tumbleweed 7.86.0-1.1

opensuse advisories openSUSE-SU-2024:12447-1

  • curl AlmaLinux 9 7.76.1-19.el9_1.1
  • libcurl AlmaLinux 9 7.76.1-19.el9_1.1
  • curl-minimal AlmaLinux 9 7.76.1-19.el9_1.1
  • libcurl-minimal AlmaLinux 9 7.76.1-19.el9_1.1

almalinux advisories ALSA-2023:0333

  • curl Rocky Linux 9 7.76.1-19.el9_1.1

rocky linux advisories RLSA-2023:0333

  • curl Alpine 3.15 7.80.0-r4
  • curl Alpine 3.16 7.83.1-r4
  • curl Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 7.86.0-r0

alpine advisories ALPINE-CVE-2022-32221

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • tensorflow Azure Linux 3.0 2.16.1-1

azure linux advisories AZL-38548

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-32221 updated cvss 4.8

curl: POST following PUT confusion

  • Red Hat Enterprise Linux AppStream (v. 9) libcurl-devel 7.76.1-19.el9_1.1, curl-debuginfo 7.76.1-19.el9_1.1, curl-debugsource 7.76.1-19.el9_1.1, libcurl-debuginfo 7.76.1-19.el9_1.1, curl-minimal-debuginfo 7.76.1-19.el9_1.1, libcurl-minimal-debuginfo 7.76.1-19.el9_1.1
    fixed: vendor fix RHSA-2023:0333
  • Red Hat Enterprise Linux AppStream EUS (v.9.0) libcurl-devel 7.76.1-14.el9_0.6, curl-debuginfo 7.76.1-14.el9_0.6, curl-debugsource 7.76.1-14.el9_0.6, libcurl-debuginfo 7.76.1-14.el9_0.6, curl-minimal-debuginfo 7.76.1-14.el9_0.6, libcurl-minimal-debuginfo 7.76.1-14.el9_0.6
    fixed: vendor fix RHSA-2023:4139
  • Red Hat Enterprise Linux BaseOS (v. 9) curl 7.76.1-19.el9_1.1, libcurl 7.76.1-19.el9_1.1, curl-minimal 7.76.1-19.el9_1.1, libcurl-minimal 7.76.1-19.el9_1.1
    fixed: vendor fix RHSA-2023:0333
  • Red Hat Enterprise Linux BaseOS EUS (v.9.0) curl 7.76.1-14.el9_0.6, libcurl 7.76.1-14.el9_0.6, curl-minimal 7.76.1-14.el9_0.6, libcurl-minimal 7.76.1-14.el9_0.6
    fixed: vendor fix RHSA-2023:4139
  • Red Hat JBoss Core Services
    fixed: vendor fix RHSA-2022:8841
  • Red Hat JBoss Core Services on RHEL 7 Server jbcs-httpd24-curl 7.86.0-2.el7jbcs, jbcs-httpd24-libcurl 7.86.0-2.el7jbcs Red Hat JBoss Core Services on RHEL 8 jbcs-httpd24-curl 7.86.0-2.el8jbcs, jbcs-httpd24-libcurl 7.86.0-2.el8jbcs
    fixed: vendor fix RHSA-2022:8840
  • Red Hat Enterprise Linux 6 curl, libcurl Red Hat Enterprise Linux 7 curl, libcurl Red Hat Enterprise Linux 8 curl, libcurl, libcurl-minimal Red Hat JBoss Core Services on RHEL 7 Server jbcs-httpd24-httpd 2.4.51-37.el7jbcs, jbcs-httpd24-mod_md 2.4.0-18.el7jbcs, jbcs-httpd24-apr-util 1.6.1-99.el7jbcs, jbcs-httpd24-mod_ssl 2.4.51-37.el7jbcs, jbcs-httpd24-nghttp2 1.43.0-11.el7jbcs, jbcs-httpd24-openssl 1.1.1k-13.el7jbcs, +22 more Red Hat JBoss Core Services on RHEL 8 jbcs-httpd24-httpd 2.4.51-37.el8jbcs, jbcs-httpd24-mod_md 2.4.0-18.el8jbcs, jbcs-httpd24-apr-util 1.6.1-99.el8jbcs, jbcs-httpd24-mod_ssl 2.4.51-37.el8jbcs, jbcs-httpd24-nghttp2 1.43.0-11.el8jbcs, jbcs-httpd24-openssl 1.1.1k-13.el8jbcs, +22 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-23-348-10 updated cvss 8.2

Siemens SIMATIC S7-1500

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.0, < 3.1.5
    affected: fixed in V3.1.5, mitigation support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
total
Assessed
17 mo ago

Exploit prediction

5.09% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • hackerone.com https://hackerone.com/reports/1704017 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
julia CURL_jll
<8.5.0+0
8.5.0+0
julia LibCURL_jll
<7.87.0+0
7.87.0+0

Affected products

  • n/a https://github.com/curl/curl
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP

Classification

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-668 Exposure of Resource to Wrong Sphere

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.