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
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.1fixed: 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.6fixed: 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.1fixed: 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.6fixed: vendor fix RHSA-2023:4139
-
Red Hat JBoss Core Servicesfixed: 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.el8jbcsfixed: 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 morenot 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.5affected: 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 ICSA-23-131-05 updated cvss 8.2
Siemens SINEC NMS Third-Party
-
Siemens SINEC NMS <V1.0.3.1affected: fixed in V1.0.3.1 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
References
-
hackerone.com
/reports/1704017
exploit, issue-tracking, third-party-advisory, web
-
security.gentoo.org
/glsa/202212-01
vendor-advisory, third-party-advisory, web
-
debian.org
/security/2023/dsa-5330
vendor-advisory, third-party-advisory, web
-
security.netapp.com
/advisory/ntap-20230110-0006/
third-party-advisory, web
-
support.apple.com
/kb/HT213604
third-party-advisory, web
-
support.apple.com
/kb/HT213605
third-party-advisory, web
-
seclists.org
/fulldisclosure/2023/Jan/20
mailing-list, third-party-advisory, web
-
seclists.org
/fulldisclosure/2023/Jan/19
mailing-list, third-party-advisory, web
-
lists.debian.org
/debian-lts-announce/2023/01/msg00028.html
mailing-list, third-party-advisory, web
-
security.netapp.com
/advisory/ntap-20230208-0002/
third-party-advisory, web
-
openwall.com
/lists/oss-security/2023/05/17/4
mailing-list, web
- cert-portal.siemens.com /productcert/html/ssa-892048.html
- cert-portal.siemens.com /productcert/html/ssa-398330.html
Sources
- CVE List CVE-2022-32221
- NVD CVE-2022-32221
- OSV JLSEC-2026-396
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.