CVE-2022-32221

curl: POST following PUT confusion

Published Dec 5, 2022 CVSS 3.1 · 9.8 Critical EPSS 5.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3288-1 curl security update
Debian DSA Debian DSA DSA-5330-1 curl security update
Ubuntu USN Ubuntu USN USN-5702-1 curl vulnerabilities
Ubuntu USN Ubuntu USN USN-5702-2 curl vulnerability
Ubuntu USN Ubuntu USN USN-5823-1 MySQL vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}