CVE-2022-32221

Name
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.
NVD Severity
high
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://hackerone.com/reports/1704017

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:* curl >= None < 7.86.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
curl 3.16-main 7.83.1-r5 Natanael Copa <ncopa@alpinelinux.org> fixed
curl 3.15-main 7.80.0-r5 Natanael Copa <ncopa@alpinelinux.org> fixed
curl 3.14-main 7.79.1-r4 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable