CVE-2022-32221

libcurl3-nss: When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for dat...

CVE-2022-32221 is fixed in 13 products on 1 platform, first by curl 7.58.0-2ubuntu3.21, released October 26, 2022. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
9.8
Medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0509
92nd percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
curl · Debian 11.6 (bullseye) 7.74.0-1.3+deb11u5 DSA-5330-1 Jan 27, 2023
curl · Debian 12.15 (bookworm) 7.86.0-1 DEBIAN-CVE-2022-32221 Dec 5, 2022
curl · Debian 13.5 (trixie) 7.86.0-1 DEBIAN-CVE-2022-32221 Dec 5, 2022
curl · Debian 14 7.86.0-1 DEBIAN-CVE-2022-32221 Dec 5, 2022
curl · RHEL 9 0:7.76.1-19.el9_1.1 RHSA-2023:0333 Jan 23, 2023
curl · Ubuntu 18.04.6 LTS (bionic) 7.58.0-2ubuntu3.21 curl 7.58.0-2ubuntu3.21 Oct 26, 2022
curl · Ubuntu 20.04 LTS (focal) 7.68.0-1ubuntu2.14 curl 7.68.0-1ubuntu2.14 Oct 26, 2022
curl · Ubuntu 22.04.1 LTS (jammy) 7.81.0-1ubuntu1.6 curl 7.81.0-1ubuntu1.6 Oct 26, 2022
curl · almalinux 9 7.76.1-19.el9_1.1 ALSA-2023:0333 Jan 23, 2023
curl · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
curl · ol 9 0:7.76.1-19.el9_1.1 ELSA-2023-0333 Jan 24, 2023
curl · rocky 9 0:7.76.1-19.el9_1.1 RLSA-2023:0333 Jan 23, 2023
curl-debuginfo · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
curl-debugsource · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
curl-minimal · RHEL 9 0:7.76.1-19.el9_1.1 RHSA-2023:0333 Jan 23, 2023
curl-minimal · almalinux 9 7.76.1-19.el9_1.1 ALSA-2023:0333 Jan 23, 2023
curl-minimal · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
curl-minimal · ol 9 0:7.76.1-19.el9_1.1 ELSA-2023-0333 Jan 24, 2023
curl-minimal-debuginfo · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl · RHEL 9 0:7.76.1-19.el9_1.1 RHSA-2023:0333 Jan 23, 2023
libcurl · almalinux 9 7.76.1-19.el9_1.1 ALSA-2023:0333 Jan 23, 2023
libcurl · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl · ol 9 0:7.76.1-19.el9_1.1 ELSA-2023-0333 Jan 24, 2023
libcurl-debuginfo · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl-devel · RHEL 9 0:7.76.1-19.el9_1.1 RHSA-2023:0333 Jan 23, 2023
libcurl-devel · almalinux 9 7.76.1-19.el9_1.1 ALSA-2023:0333 Jan 23, 2023
libcurl-devel · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl-devel · ol 9 0:7.76.1-19.el9_1.1 ELSA-2023-0333 Jan 24, 2023
libcurl-minimal · RHEL 9 0:7.76.1-19.el9_1.1 RHSA-2023:0333 Jan 23, 2023
libcurl-minimal · almalinux 9 7.76.1-19.el9_1.1 ALSA-2023:0333 Jan 23, 2023
libcurl-minimal · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl-minimal · ol 9 0:7.76.1-19.el9_1.1 ELSA-2023-0333 Jan 24, 2023
libcurl-minimal-debuginfo · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl3-gnutls · Ubuntu 18.04.6 LTS (bionic) 7.58.0-2ubuntu3.21 libcurl3-gnutls 7.58.0-2ubuntu3.21 Oct 26, 2022
libcurl3-gnutls · Ubuntu 20.04 LTS (focal) 7.68.0-1ubuntu2.14 libcurl3-gnutls 7.68.0-1ubuntu2.14 Oct 26, 2022
libcurl3-gnutls · Ubuntu 22.04.1 LTS (jammy) 7.81.0-1ubuntu1.6 libcurl3-gnutls 7.81.0-1ubuntu1.6 Oct 26, 2022
libcurl3-nss · Ubuntu 18.04.6 LTS (bionic) 7.58.0-2ubuntu3.21 libcurl3-nss 7.58.0-2ubuntu3.21 Oct 26, 2022
libcurl3-nss · Ubuntu 20.04 LTS (focal) 7.68.0-1ubuntu2.14 libcurl3-nss 7.68.0-1ubuntu2.14 Oct 26, 2022
libcurl3-nss · Ubuntu 22.04.1 LTS (jammy) 7.81.0-1ubuntu1.6 libcurl3-nss 7.81.0-1ubuntu1.6 Oct 26, 2022
libcurl4 · Ubuntu 18.04.6 LTS (bionic) 7.58.0-2ubuntu3.21 libcurl4 7.58.0-2ubuntu3.21 Oct 26, 2022
libcurl4 · Ubuntu 20.04 LTS (focal) 7.68.0-1ubuntu2.14 libcurl4 7.68.0-1ubuntu2.14 Oct 26, 2022
libcurl4 · Ubuntu 22.04.1 LTS (jammy) 7.81.0-1ubuntu1.6 libcurl4 7.81.0-1ubuntu1.6 Oct 26, 2022

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.