Vulnerability · Published Jul 7, 2022 · Assigned by hackerone

CVE-2022-32205

Medium 4.3

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 31.5% (higher than 98% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

A malicious server can serve excessive amounts of `Set-Cookie:` headers in a HTTP response to curl and curl < 7.84.0 stores all of them. A sufficiently large amount of (big) cookies make subsequent HTTP requests to this, or other servers to which the cookies match, create requests that become larger than the threshold that curl uses internally to avoid sending crazy large requests (1048576 bytes) and instead returns an error.This denial state might remain for as long as the same cookies are kept, match and haven't expired. Due to cookie matching rules, a server on `foo.example.com` can set cookies that also would match for `bar.example.com`, making it it possible for a "sister server" to effectively cause a denial of service for a sibling site on the same second level domain using this method.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20curl7.84.0-r0ALPINE-CVE-2022-32205
Alpine:v3.21curl7.84.0-r0ALPINE-CVE-2022-32205
Alpine:v3.22curl7.84.0-r0ALPINE-CVE-2022-32205
Alpine:v3.23curl7.84.0-r0ALPINE-CVE-2022-32205
Alpine:v3.24curl7.84.0-r0ALPINE-CVE-2022-32205
Debian:12curl7.84.0-1DEBIAN-CVE-2022-32205
Debian:13curl7.84.0-1DEBIAN-CVE-2022-32205
Debian:14curl7.84.0-1DEBIAN-CVE-2022-32205
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.3UBUNTU-CVE-2022-32205
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.3USN-5495-1

Affected products (as reported)

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

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

References