# CVE-2022-32221: POST following PUT confusion

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.12%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-26T08:00:00.000Z
- Modified: 2026-10-25T01:16:46.406Z
- Also known as: CURL-CVE-2022-32221
- Weaknesses: CWE-200, CWE-668
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: hackerone

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

(As written by CVE List.)

## Affected

- https://github.com/curl/curl: Fixed in 7.86.0
- https://github.com/curl/curl.git: from 7.7 before 7.86.0; from 546572da0457f37c698c02d0a08d90fdfcbeedec before a64e3e59938abd7d667e4470a18072a24d7e9de9
- haxx curl: before 7.86.0
- netapp clustered_data_ontap: no versions given
- netapp h300s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h410s_firmware: no versions given
- debian debian_linux: 10.0; 11.0
- apple macos: before 12.6.3
- splunk universal_forwarder: from 8.2.0 before 8.2.12; from 9.0.0 before 9.0.6; 9.1.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- curl: rating Medium
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://hackerone.com/reports/1704017> (exploit, issue-tracking, third-party-advisory)
- <https://security.gentoo.org/glsa/202212-01> (third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20230110-0006/> (third-party-advisory)
- <https://support.apple.com/kb/HT213604> (third-party-advisory)
- <https://support.apple.com/kb/HT213605> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2023/Jan/20> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2023/Jan/19> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2023/dsa-5330> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00028.html> (mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20230208-0002/> (third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2023/05/17/4> (mailing-list)
- <https://cert-portal.siemens.com/productcert/html/ssa-892048.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2022-32221](https://www.cve.org/CVERecord?id=CVE-2022-32221), CVE Terms of Use, modified 2026-10-14
- curl: [CURL-CVE-2022-32221](https://osv.dev/vulnerability/CURL-CVE-2022-32221), MIT, modified 2026-10-25
- NVD: [CVE-2022-32221](https://nvd.nist.gov/vuln/detail/CVE-2022-32221), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2022-32221 · Whole record: https://cve.day/CVE-2022-32221.json · Rebuilt by cve.day 2026-11-25T22:58:17.233Z
