{"id":"CVE-2022-32221","state":"PUBLISHED","title":"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 s","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.","publishedAt":"2022-12-05T00:00:00.000Z","updatedAt":"2026-10-14T16:53:02.262Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"hackerone","products":["n/a https://github.com/curl/curl"],"affected":[{"vendor":"n/a","product":"https://github.com/curl/curl","versions":[{"version":"Fixed in 7.86.0","status":"affected"}]}],"references":["https://hackerone.com/reports/1704017","https://security.gentoo.org/glsa/202212-01","https://security.netapp.com/advisory/ntap-20230110-0006/","https://support.apple.com/kb/HT213604","https://support.apple.com/kb/HT213605","http://seclists.org/fulldisclosure/2023/Jan/20","http://seclists.org/fulldisclosure/2023/Jan/19","https://www.debian.org/security/2023/dsa-5330","https://lists.debian.org/debian-lts-announce/2023/01/msg00028.html","https://security.netapp.com/advisory/ntap-20230208-0002/","http://www.openwall.com/lists/oss-security/2023/05/17/4","https://cert-portal.siemens.com/productcert/html/ssa-892048.html","https://cert-portal.siemens.com/productcert/html/ssa-398330.html"],"weaknesses":["CWE-200"],"ingestedAt":"2026-10-29T19:50:09.278Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/32xxx/CVE-2022-32221.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-32221","state":"PUBLISHED","datePublished":"2022-12-05T00:00:00.000Z","dateUpdated":"2026-10-14T16:53:02.262Z","assignerShortName":"hackerone","assignerOrgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1","dateReserved":"2022-06-01T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"https://github.com/curl/curl","versions":[{"version":"Fixed in 7.86.0","status":"affected"}]}],"references":[{"url":"https://hackerone.com/reports/1704017"},{"url":"https://security.gentoo.org/glsa/202212-01","name":"GLSA-202212-01","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230110-0006/"},{"url":"https://support.apple.com/kb/HT213604"},{"url":"https://support.apple.com/kb/HT213605"},{"url":"http://seclists.org/fulldisclosure/2023/Jan/20","name":"20230123 APPLE-SA-2023-01-23-5 macOS Monterey 12.6.3","tags":["mailing-list"]},{"url":"http://seclists.org/fulldisclosure/2023/Jan/19","name":"20230123 APPLE-SA-2023-01-23-4 macOS Ventura 13.2","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2023/dsa-5330","name":"DSA-5330","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00028.html","name":"[debian-lts-announce] 20230128 [SECURITY] [DLA 3288-1] curl security update","tags":["mailing-list"]},{"url":"https://security.netapp.com/advisory/ntap-20230208-0002/"},{"url":"http://www.openwall.com/lists/oss-security/2023/05/17/4","name":"[oss-security] 20230517 curl: CVE-2023-28322: more POST-after-PUT confusion","tags":["mailing-list"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-200","type":"CWE","lang":"en","description":"Information Disclosure (CWE-200)"}]}],"providerMetadata":{"shortName":"hackerone","orgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1","dateUpdated":"2023-05-17T00:00:00.000Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://hackerone.com/reports/1704017","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/202212-01","name":"GLSA-202212-01","tags":["vendor-advisory","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20230110-0006/","tags":["x_transferred"]},{"url":"https://support.apple.com/kb/HT213604","tags":["x_transferred"]},{"url":"https://support.apple.com/kb/HT213605","tags":["x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2023/Jan/20","name":"20230123 APPLE-SA-2023-01-23-5 macOS Monterey 12.6.3","tags":["mailing-list","x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2023/Jan/19","name":"20230123 APPLE-SA-2023-01-23-4 macOS Ventura 13.2","tags":["mailing-list","x_transferred"]},{"url":"https://www.debian.org/security/2023/dsa-5330","name":"DSA-5330","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00028.html","name":"[debian-lts-announce] 20230128 [SECURITY] [DLA 3288-1] curl security update","tags":["mailing-list","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20230208-0002/","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2023/05/17/4","name":"[oss-security] 20230517 curl: CVE-2023-28322: more POST-after-PUT confusion","tags":["mailing-list","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T07:32:56.010Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-05-20T15:51:51.662523Z","id":"CVE-2022-32221","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-13T19:37:15.128Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-892048.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-14T16:53:02.262Z"},"x_adpType":"supplier"}]}}}