Vulnerability · Published May 26, 2023 · Assigned by hackerone

CVE-2023-28322

Medium 5.3

In plain English

A medium-severity information exposure in https://github.com/curl/curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)2.2%top 17.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

An information disclosure vulnerability exists in curl <v8.1.0 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 wasused 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 second transfer. The problem exists in the logic for a reused handle when it is (expected to be) changed from a PUT to a POST.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8curl7.61.1-33.el8_9.5ALSA-2024:1601
AlmaLinux:9curl7.76.1-23.el9_2.2ALSA-2023:4354
AlmaLinux:9curl-minimal7.76.1-23.el9_2.2ALSA-2023:4354
AlmaLinux:8libcurl7.61.1-33.el8_9.5ALSA-2024:1601
AlmaLinux:9libcurl7.76.1-23.el9_2.2ALSA-2023:4354
AlmaLinux:8libcurl-devel7.61.1-33.el8_9.5ALSA-2024:1601
AlmaLinux:9libcurl-devel7.76.1-23.el9_2.2ALSA-2023:4354
AlmaLinux:8libcurl-minimal7.61.1-33.el8_9.5ALSA-2024:1601
AlmaLinux:9libcurl-minimal7.76.1-23.el9_2.2ALSA-2023:4354
Alpine:v3.20curl8.1.0-r0ALPINE-CVE-2023-28322
Alpine:v3.21curl8.1.0-r0ALPINE-CVE-2023-28322
Alpine:v3.22curl8.1.0-r0ALPINE-CVE-2023-28322
Alpine:v3.23curl8.1.0-r0ALPINE-CVE-2023-28322
Alpine:v3.24curl8.1.0-r0ALPINE-CVE-2023-28322
Debian:12curl7.88.1-10DEBIAN-CVE-2023-28322
Debian:13curl7.88.1-10DEBIAN-CVE-2023-28322
Debian:14curl7.88.1-10DEBIAN-CVE-2023-28322
Rocky Linux:8curl0:7.61.1-33.el8_9.5RLSA-2024:1601
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.11UBUNTU-CVE-2023-28322
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.11USN-6237-1

Affected products (as reported)

VendorProductVersions
n/a https://github.com/curl/curl Fixed in 8.1.0

Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References