# 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.

- Web page: https://patchblox.com/security/cve/CVE-2022-32221
- Priority: High
- CVSS: 9.8 (Medium)
- EPSS: 0.0509
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 26, 2022

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | curl Debian 11.6 (bullseye) | 7.74.0-1.3+deb11u5 | [DSA-5330-1](https://patchblox.com/security/data/fix/linux/dsa-5330-1.md) | Jan 27, 2023 |
| Linux | curl Debian 12.15 (bookworm) | 7.86.0-1 | [DEBIAN-CVE-2022-32221](https://patchblox.com/security/data/fix/linux/debian-cve-2022-32221.md) | Dec 5, 2022 |
| Linux | curl Debian 13.5 (trixie) | 7.86.0-1 | [DEBIAN-CVE-2022-32221](https://patchblox.com/security/data/fix/linux/debian-cve-2022-32221.md) | Dec 5, 2022 |
| Linux | curl Debian 14 | 7.86.0-1 | [DEBIAN-CVE-2022-32221](https://patchblox.com/security/data/fix/linux/debian-cve-2022-32221.md) | Dec 5, 2022 |
| Linux | curl RHEL 9 | 0:7.76.1-19.el9_1.1 | [RHSA-2023:0333](https://patchblox.com/security/data/fix/linux/rhsa-2023-0333.md) | Jan 23, 2023 |
| Linux | curl Ubuntu 18.04.6 LTS (bionic) | 7.58.0-2ubuntu3.21 | [curl 7.58.0-2ubuntu3.21](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-curl-7.58.0-2ubuntu3.21.md) | Oct 26, 2022 |
| Linux | curl Ubuntu 20.04 LTS (focal) | 7.68.0-1ubuntu2.14 | [curl 7.68.0-1ubuntu2.14](https://patchblox.com/security/data/fix/linux/ubuntu-focal-curl-7.68.0-1ubuntu2.14.md) | Oct 26, 2022 |
| Linux | curl Ubuntu 22.04.1 LTS (jammy) | 7.81.0-1ubuntu1.6 | [curl 7.81.0-1ubuntu1.6](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-curl-7.81.0-1ubuntu1.6.md) | Oct 26, 2022 |
| Linux | curl almalinux 9 | 7.76.1-19.el9_1.1 | [ALSA-2023:0333](https://patchblox.com/security/data/fix/linux/alsa-2023-0333.md) | Jan 23, 2023 |
| Linux | curl amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | curl ol 9 | 0:7.76.1-19.el9_1.1 | [ELSA-2023-0333](https://patchblox.com/security/data/fix/linux/elsa-2023-0333.md) | Jan 24, 2023 |
| Linux | curl rocky 9 | 0:7.76.1-19.el9_1.1 | [RLSA-2023:0333](https://patchblox.com/security/data/fix/linux/rlsa-2023-0333.md) | Jan 23, 2023 |
| Linux | curl-debuginfo amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | curl-debugsource amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | curl-minimal RHEL 9 | 0:7.76.1-19.el9_1.1 | [RHSA-2023:0333](https://patchblox.com/security/data/fix/linux/rhsa-2023-0333.md) | Jan 23, 2023 |
| Linux | curl-minimal almalinux 9 | 7.76.1-19.el9_1.1 | [ALSA-2023:0333](https://patchblox.com/security/data/fix/linux/alsa-2023-0333.md) | Jan 23, 2023 |
| Linux | curl-minimal amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | curl-minimal ol 9 | 0:7.76.1-19.el9_1.1 | [ELSA-2023-0333](https://patchblox.com/security/data/fix/linux/elsa-2023-0333.md) | Jan 24, 2023 |
| Linux | curl-minimal-debuginfo amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl RHEL 9 | 0:7.76.1-19.el9_1.1 | [RHSA-2023:0333](https://patchblox.com/security/data/fix/linux/rhsa-2023-0333.md) | Jan 23, 2023 |
| Linux | libcurl almalinux 9 | 7.76.1-19.el9_1.1 | [ALSA-2023:0333](https://patchblox.com/security/data/fix/linux/alsa-2023-0333.md) | Jan 23, 2023 |
| Linux | libcurl amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl ol 9 | 0:7.76.1-19.el9_1.1 | [ELSA-2023-0333](https://patchblox.com/security/data/fix/linux/elsa-2023-0333.md) | Jan 24, 2023 |
| Linux | libcurl-debuginfo amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl-devel RHEL 9 | 0:7.76.1-19.el9_1.1 | [RHSA-2023:0333](https://patchblox.com/security/data/fix/linux/rhsa-2023-0333.md) | Jan 23, 2023 |
| Linux | libcurl-devel almalinux 9 | 7.76.1-19.el9_1.1 | [ALSA-2023:0333](https://patchblox.com/security/data/fix/linux/alsa-2023-0333.md) | Jan 23, 2023 |
| Linux | libcurl-devel amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl-devel ol 9 | 0:7.76.1-19.el9_1.1 | [ELSA-2023-0333](https://patchblox.com/security/data/fix/linux/elsa-2023-0333.md) | Jan 24, 2023 |
| Linux | libcurl-minimal RHEL 9 | 0:7.76.1-19.el9_1.1 | [RHSA-2023:0333](https://patchblox.com/security/data/fix/linux/rhsa-2023-0333.md) | Jan 23, 2023 |
| Linux | libcurl-minimal almalinux 9 | 7.76.1-19.el9_1.1 | [ALSA-2023:0333](https://patchblox.com/security/data/fix/linux/alsa-2023-0333.md) | Jan 23, 2023 |
| Linux | libcurl-minimal amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl-minimal ol 9 | 0:7.76.1-19.el9_1.1 | [ELSA-2023-0333](https://patchblox.com/security/data/fix/linux/elsa-2023-0333.md) | Jan 24, 2023 |
| Linux | libcurl-minimal-debuginfo amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl3-gnutls Ubuntu 18.04.6 LTS (bionic) | 7.58.0-2ubuntu3.21 | [libcurl3-gnutls 7.58.0-2ubuntu3.21](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libcurl3-gnutls-7.58.0-2ubuntu3.21.md) | Oct 26, 2022 |
| Linux | libcurl3-gnutls Ubuntu 20.04 LTS (focal) | 7.68.0-1ubuntu2.14 | [libcurl3-gnutls 7.68.0-1ubuntu2.14](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libcurl3-gnutls-7.68.0-1ubuntu2.14.md) | Oct 26, 2022 |
| Linux | libcurl3-gnutls Ubuntu 22.04.1 LTS (jammy) | 7.81.0-1ubuntu1.6 | [libcurl3-gnutls 7.81.0-1ubuntu1.6](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libcurl3-gnutls-7.81.0-1ubuntu1.6.md) | Oct 26, 2022 |
| Linux | libcurl3-nss Ubuntu 18.04.6 LTS (bionic) | 7.58.0-2ubuntu3.21 | [libcurl3-nss 7.58.0-2ubuntu3.21](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libcurl3-nss-7.58.0-2ubuntu3.21.md) | Oct 26, 2022 |
| Linux | libcurl3-nss Ubuntu 20.04 LTS (focal) | 7.68.0-1ubuntu2.14 | [libcurl3-nss 7.68.0-1ubuntu2.14](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libcurl3-nss-7.68.0-1ubuntu2.14.md) | Oct 26, 2022 |
| Linux | libcurl3-nss Ubuntu 22.04.1 LTS (jammy) | 7.81.0-1ubuntu1.6 | [libcurl3-nss 7.81.0-1ubuntu1.6](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libcurl3-nss-7.81.0-1ubuntu1.6.md) | Oct 26, 2022 |
| Linux | libcurl4 Ubuntu 18.04.6 LTS (bionic) | 7.58.0-2ubuntu3.21 | [libcurl4 7.58.0-2ubuntu3.21](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libcurl4-7.58.0-2ubuntu3.21.md) | Oct 26, 2022 |
| Linux | libcurl4 Ubuntu 20.04 LTS (focal) | 7.68.0-1ubuntu2.14 | [libcurl4 7.68.0-1ubuntu2.14](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libcurl4-7.68.0-1ubuntu2.14.md) | Oct 26, 2022 |
| Linux | libcurl4 Ubuntu 22.04.1 LTS (jammy) | 7.81.0-1ubuntu1.6 | [libcurl4 7.81.0-1ubuntu1.6](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libcurl4-7.81.0-1ubuntu1.6.md) | Oct 26, 2022 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
