9.8critical
POST following PUT confusion
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 5.12% (higher than 92% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- CURL-CVE-2022-32221
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| https://github.com/curl/curl | Fixed in 7.86.0 | CVE List |
| https://github.com/curl/curl.git | from 7.7 before 7.86.0, from 546572da0457f37c698c02d0a08d90fdfcbeedec before a64e3e59938abd7d667e4470a18072a24d7e9de9 | curl |
| haxx curl | before 7.86.0 | NVD |
| netapp clustered_data_ontap | Not specified | NVD |
| netapp h300s_firmware | Not specified | NVD |
| netapp h500s_firmware | Not specified | NVD |
| netapp h700s_firmware | Not specified | NVD |
| netapp h410s_firmware | Not specified | NVD |
| debian debian_linux | 10.0, 11.0 | NVD |
| apple macos | before 12.6.3 | NVD |
| splunk universal_forwarder | from 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0 | NVD |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| curl | medium rating | |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
Al realizar transferencias HTTP(S), libcurl podría usar erróneamente la devolución de llamada de lectura (`CURLOPT_READFUNCTION`) para solicitar datos para enviar, incluso cuando se haya configurado la opción `CURLOPT_POSTFIELDS`, si anteriormente se usó el mismo identificador para emitir un `PUT `solicitud que utilizó esa devolución de llamada. Esta falla puede sorprender a la aplicación y hacer que se comporte mal y envíe datos incorrectos o use memoria después de liberarla o algo similar en la solicitud "POST" posterior. El problema existe en la lógica de un identificador reutilizado cuando se cambia de PUT a POST.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-32221 changed 2026-10-14 | CVE Terms of Use |
| curl | CURL-CVE-2022-32221 changed 2026-10-25 | MIT |
| NVD | CVE-2022-32221 changed 2026-10-14 | Public domain |