{"id":"CVE-2022-32221","published":"2022-12-05T00:00:00Z","modified":"2026-10-14T16:53:02Z","title":"When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.05117,"percentile":0.92579,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://hackerone.com/reports/1704017","tags":[]},{"url":"https://security.gentoo.org/glsa/202212-01","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230110-0006/","tags":[]},{"url":"https://support.apple.com/kb/HT213604","tags":[]},{"url":"https://support.apple.com/kb/HT213605","tags":[]},{"url":"http://seclists.org/fulldisclosure/2023/Jan/20","tags":["mailing-list"]},{"url":"http://seclists.org/fulldisclosure/2023/Jan/19","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2023/dsa-5330","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00028.html","tags":["mailing-list"]},{"url":"https://security.netapp.com/advisory/ntap-20230208-0002/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2023/05/17/4","tags":["mailing-list"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-892048.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[]}],"priority":{"score":25.4,"factors":[{"name":"EPSS percentile","points":18.52},{"name":"CVSS severity","points":6.86}]},"affectedVersions":[{"vendor":"n/a","product":"https://github.com/curl/curl","versions":["Fixed in 7.86.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-05-20T15:51:51.662523Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw is in libcurl's HTTP(S) transfer logic, where a reused easy handle that previously issued a PUT using the read callback (CURLOPT_READFUNCTION) can wrongly invoke that callback to supply data for a later POST, even though CURLOPT_POSTFIELDS was set. An attacker who can influence the requests an application sends on a reused handle could cause the wrong data to be transmitted or trigger use-after-free-type memory misbehaviour in the subsequent POST, with the exploitation conditions being that the application reuses the handle to switch from PUT to POST.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:32:40Z"},"euvd":{"id":"EUVD-2022-53422","exploited":false,"provenance":"source"}}