

Upgrade Debian:11 curl to version 7.74.0-1.3+deb11u5 or higher. The problem exists in the logic for a reused handle when it is changed from a PUT to a POST. 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.

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. See How to fix? for Debian:11 relevant fixed versions and status. Note: Versions mentioned in the description apply only to the upstream curl package and not the curl package as distributed by Debian:11.
