Skip to content
OpenAdvisories
Critical · 9.8 CVE-2022-32221 EUVD-2022-53422GHSA-grfr-78m7-q35q

When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data to send, even when t…

Published Dec 5, 2022 · Updated Oct 14, 2026 · Assigned by hackerone

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.

Affected products

VendorProductAffectedFixed
— https://github.com/curl/curl Fixed in 7.86.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 7.86.0-1 —
Debian 13 curl 7.86.0-1 —
Debian 12 curl 7.86.0-1 —
Debian 11 curl 7.74.0-1.3+deb11u5 DSA-5330-1
Debian 10 curl 7.64.0-4+deb10u4 DLA-3288-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS curl 7.81.0-1ubuntu1.6 USN-5702-1
Ubuntu 22.04 LTS mysql-8.0 8.0.32-0buntu0.22.04.1 USN-5823-1
Ubuntu 20.04 LTS curl 7.68.0-1ubuntu2.14 USN-5702-1
Ubuntu 20.04 LTS mysql-8.0 8.0.32-0buntu0.20.04.1 USN-5823-1
Ubuntu 18.04 LTS curl 7.58.0-2ubuntu3.21 USN-5702-1
Ubuntu 18.04 LTS mysql-5.7 5.7.41-0ubuntu0.18.04.1 USN-5823-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS curl 7.47.0-1ubuntu2.19+esm6 USN-5702-2
Ubuntu Pro 14.04 LTS curl 7.35.0-1ubuntu2.20+esm13 USN-5702-2
ReleasePackageFixed inAdvisory
RHEL 9 curl +4 7.76.1-19.el9_1.1 RHSA-2023:0333
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 EUS curl +4 7.76.1-14.el9_0.6 RHSA-2023:4139
Red Hat JBoss Core Services 1 jbcs-httpd24-curl +2 7.86.0-2.el7jbcs RHSA-2022:8840
Red Hat JBoss Core Services 1 jbcs-httpd24-httpd +6 2.4.51-37.el7jbcs RHSA-2022:8840
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_http2 1.15.19-20.el7jbcs RHSA-2022:8840
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_ssl +1 1:2.4.51-37.el7jbcs RHSA-2022:8840
Red Hat JBoss Core Services 1 jbcs-httpd24-openssl +4 1:1.1.1k-13.el7jbcs RHSA-2022:8840

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 curl +4 7.76.1-19.el9_1.1 ALSA-2023:0333

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 curl 7.76.1-19.el9_1.1 RLSA-2023:0333
ReleasePackageFixed inAdvisory
SLES 15 SP4 curl 7.79.1-150400.5.9.1 SUSE-SU-2022:3785-1
SLES 15 SP3 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
SLES 15 SP2 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
SLES 15 SP1 curl 7.60.0-150000.38.1 SUSE-SU-2022:3774-1
SLES 15 curl 7.60.0-150000.38.1 SUSE-SU-2022:3774-1
Show 22 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 curl 7.60.0-11.49.1 SUSE-SU-2022:3769-1
SLES 12 SP4 curl 7.60.0-4.43.1 SUSE-SU-2022:3772-1
SLES 12 SP3 curl 7.37.0-37.85.1 SUSE-SU-2022:3770-1
SLES 12 SP2 curl 7.37.0-37.85.1 SUSE-SU-2022:3770-1
SLES for SAP 15 SP2 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
SLES for SAP 15 SP1 curl 7.60.0-150000.38.1 SUSE-SU-2022:3774-1
SLES for SAP 15 curl 7.60.0-150000.38.1 SUSE-SU-2022:3774-1
SLES for SAP 12 SP5 curl 7.60.0-11.49.1 SUSE-SU-2022:3769-1
SLES for SAP 12 SP4 curl 7.60.0-4.43.1 SUSE-SU-2022:3772-1
SLE Micro 5.3 curl 7.79.1-150400.5.9.1 SUSE-SU-2022:3785-1
SLE Micro 5.2 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
SLE Micro 5.1 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
SLE HPC 15 SP2 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
SLE HPC 15 SP1 curl 7.60.0-150000.38.1 SUSE-SU-2022:3774-1
SLE HPC 15 curl 7.60.0-150000.38.1 SUSE-SU-2022:3774-1
SUSE OpenStack Cloud Crowbar 9 curl 7.60.0-4.43.1 SUSE-SU-2022:3772-1
SUSE OpenStack Cloud 9 curl 7.60.0-4.43.1 SUSE-SU-2022:3772-1
SUSE Manager Server 4.1 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
SUSE Manager Retail Branch Server 4.1 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
SUSE Manager Proxy 4.1 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
SUSE Enterprise Storage 7 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
SUSE Enterprise Storage 6 curl 7.60.0-150000.38.1 SUSE-SU-2022:3774-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 7.86.0-1.1 openSUSE-SU-2024:12447-1
openSUSE Leap 15.4 curl 7.79.1-150400.5.9.1 SUSE-SU-2022:3785-1
openSUSE Leap 15.3 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.2 curl 7.66.0-150200.4.42.1 SUSE-SU-2022:3773-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 7.86.0-r0 —
Alpine v3.23 curl 7.86.0-r0 —
Alpine v3.22 curl 7.86.0-r0 —
Alpine v3.21 curl 7.86.0-r0 —
Alpine v3.20 curl 7.86.0-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 7.86.0-r0 —
Alpine v3.18 curl 7.86.0-r0 —
Alpine v3.17 curl 7.86.0-r0 —
Alpine v3.16 curl 7.83.1-r4 —
Alpine v3.15 curl 7.80.0-r4 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 curl +4 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083
Amazon Linux 2 curl +2 7.79.1-7.amzn2.0.1 ALAS2-2022-1882

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 tensorflow 2.16.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 curl +4 7.76.1-19.el9_1.1 ELSA-2023-0333

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling curl 7.86.0-r0 —

Advisories 37

References