CVE-2022-32221CWE-200CWE-668information-disclosure

CVE-2022-32221

Critical · published December 6, 2022

CVSS v3.1
9.8
EPSS
5%
Percentile
92.3
In the wild
Unconfirmed
What it is

🔥 A mishap in libcurl could lead to sending the wrong data during a POST request — like mistakenly putting the wrong order in the takeout bag! Think of it like a restaurant that uses the same chef for both pizza and pasta. If the chef forgets they’ve switched from making pizza to pasta, they might accidentally toss in a pepperoni instead of basil for your fettuccine. This flaw in libcurl’s request handling can lead to equally chaotic results! If an application is tricked into sending incorrect data or even accessing memory it shouldn't, the consequences could be absolutely devastating. This could lead to data corruption, unexpected application behavior, or even exposure of sensitive information, putting your users at risk and your application in jeopardy.

Put simply

Think of it like a restaurant that uses the same chef for both pizza and pasta. If the chef forgets they’ve switched from making pizza to pasta, they might accidentally toss in a pepperoni instead of basil for your fettuccine. This flaw in libcurl’s request handling can lead to equally chaotic results! This vulnerability arises from libcurl reusing a handle intended for PUT requests, which can mistakenly invoke the read callback for POST requests when it shouldn't, leading to unexpected data being sent.

What to do

If an application is tricked into sending incorrect data or even accessing memory it shouldn't, the consequences could be absolutely devastating. This could lead to data corruption, unexpected application behavior, or even exposure of sensitive information, putting your users at risk and your application in jeopardy. To protect your application, update libcurl to the latest version, where this issue has been addressed. Review your code to ensure the proper handling of HTTP methods and consider implementing checks to prevent unintended function calls. It's time to strengthen your data handling! You've got this! Take these steps, and you'll be back on track in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.05092 · 92.3th percentile
Weaknesses
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor; CWE-668 · Exposure of Resource to Wrong Sphere
Published
2022-12-06T03:15Z
Affected products (12)
ProductVersionsFixed in
haxx/curl< 7.86.07.86.0
netapp/clustered_data_ontapall versions—
netapp/h300s_firmwareall versions—
netapp/h500s_firmwareall versions—
netapp/h700s_firmwareall versions—
netapp/h410s_firmwareall versions—
debian/debian_linuxall versions—
debian/debian_linuxall versions—
apple/macos< 12.6.312.6.3
splunk/universal_forwarder≥ 8.2.0, < 8.2.128.2.12
splunk/universal_forwarder≥ 9.0.0, < 9.0.69.0.6
splunk/universal_forwarderall versions—
References (24)
http://seclists.org/fulldisclosure/2023/Jan/19 · [email protected]http://seclists.org/fulldisclosure/2023/Jan/20 · [email protected]http://www.openwall.com/lists/oss-security/2023/05/17/4 · [email protected]https://hackerone.com/reports/1704017 · [email protected]https://lists.debian.org/debian-lts-announce/2023/01/msg00028.html · [email protected]https://security.gentoo.org/glsa/202212-01 · [email protected]https://security.netapp.com/advisory/ntap-20230110-0006/ · [email protected]https://security.netapp.com/advisory/ntap-20230208-0002/ · [email protected]https://support.apple.com/kb/HT213604 · [email protected]https://support.apple.com/kb/HT213605 · [email protected]https://www.debian.org/security/2023/dsa-5330 · [email protected]http://seclists.org/fulldisclosure/2023/Jan/19 · af854a3a-2127-422b-91ae-364da2661108http://seclists.org/fulldisclosure/2023/Jan/20 · af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2023/05/17/4 · af854a3a-2127-422b-91ae-364da2661108https://hackerone.com/reports/1704017 · af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2023/01/msg00028.html · af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202212-01 · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20230110-0006/ · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20230208-0002/ · af854a3a-2127-422b-91ae-364da2661108https://support.apple.com/kb/HT213604 · af854a3a-2127-422b-91ae-364da2661108https://support.apple.com/kb/HT213605 · af854a3a-2127-422b-91ae-364da2661108https://www.debian.org/security/2023/dsa-5330 · af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/html/ssa-398330.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-892048.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
EPSS history
Timeline
  • 05 DEC 00:00Z
    When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data to send, even when the…
    cvelistv5