Vulnerability · Published Feb 23, 2023 · Assigned by hackerone

CVE-2023-23916

Medium 6.5

In plain English

A medium-severity resource allocation without limits 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 1.7% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

An allocation of resources without limits or throttling vulnerability exists in curl <v7.88.0 based on the "chained" HTTP compression algorithms, meaning that a server response can be compressed multiple times and potentially with differentalgorithms. The number of acceptable "links" in this "decompression chain" wascapped, but the cap was implemented on a per-header basis allowing a maliciousserver to insert a virtually unlimited number of compression steps simply byusing many headers. The use of such a decompression chain could result in a "malloc bomb", making curl end up spending enormous amounts of allocated heap memory, or trying to and returning out of memory errors.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8curl7.61.1-25.el8_7.3ALSA-2023:1140
AlmaLinux:9curl7.76.1-19.el9_1.2ALSA-2023:1701
AlmaLinux:9curl-minimal7.76.1-19.el9_1.2ALSA-2023:1701
AlmaLinux:8libcurl7.61.1-25.el8_7.3ALSA-2023:1140
AlmaLinux:9libcurl7.76.1-19.el9_1.2ALSA-2023:1701
AlmaLinux:8libcurl-devel7.61.1-25.el8_7.3ALSA-2023:1140
AlmaLinux:9libcurl-devel7.76.1-19.el9_1.2ALSA-2023:1701
AlmaLinux:8libcurl-minimal7.61.1-25.el8_7.3ALSA-2023:1140
AlmaLinux:9libcurl-minimal7.76.1-19.el9_1.2ALSA-2023:1701
Alpine:v3.20curl7.88.0-r0ALPINE-CVE-2023-23916
Alpine:v3.21curl7.88.0-r0ALPINE-CVE-2023-23916
Alpine:v3.22curl7.88.0-r0ALPINE-CVE-2023-23916
Alpine:v3.23curl7.88.0-r0ALPINE-CVE-2023-23916
Alpine:v3.24curl7.88.0-r0ALPINE-CVE-2023-23916
Debian:12curl7.88.1-1DEBIAN-CVE-2023-23916
Debian:13curl7.88.1-1DEBIAN-CVE-2023-23916
Debian:14curl7.88.1-1DEBIAN-CVE-2023-23916
Rocky Linux:8curl0:7.61.1-25.el8_7.3RLSA-2023:1140
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.8UBUNTU-CVE-2023-23916
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.8USN-5891-1

Affected products (as reported)

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

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

References