Vulnerability · Published Feb 9, 2023 · Assigned by hackerone

CVE-2022-43552

Medium 5.9

In plain English

A medium-severity use-after-free in https://github.com/curl/curl. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)2.7%top 13.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

A use after free vulnerability exists in curl <7.87.0. Curl can be asked to *tunnel* virtually all protocols it supports through an HTTP proxy. HTTP proxies can (and often do) deny such tunnel operations. When getting denied to tunnel the specific protocols SMB or TELNET, curl would use a heap-allocated struct after it had been freed, in its transfer shutdown code path.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8curl7.61.1-30.el8ALSA-2023:2963
AlmaLinux:9curl7.76.1-23.el9ALSA-2023:2478
AlmaLinux:9curl-minimal7.76.1-23.el9ALSA-2023:2478
AlmaLinux:8libcurl7.61.1-30.el8ALSA-2023:2963
AlmaLinux:9libcurl7.76.1-23.el9ALSA-2023:2478
AlmaLinux:8libcurl-devel7.61.1-30.el8ALSA-2023:2963
AlmaLinux:9libcurl-devel7.76.1-23.el9ALSA-2023:2478
AlmaLinux:8libcurl-minimal7.61.1-30.el8ALSA-2023:2963
AlmaLinux:9libcurl-minimal7.76.1-23.el9ALSA-2023:2478
Alpine:v3.20curl7.87.0-r0ALPINE-CVE-2022-43552
Alpine:v3.21curl7.87.0-r0ALPINE-CVE-2022-43552
Alpine:v3.22curl7.87.0-r0ALPINE-CVE-2022-43552
Alpine:v3.23curl7.87.0-r0ALPINE-CVE-2022-43552
Alpine:v3.24curl7.87.0-r0ALPINE-CVE-2022-43552
Debian:12curl7.86.0-3DEBIAN-CVE-2022-43552
Debian:13curl7.86.0-3DEBIAN-CVE-2022-43552
Debian:14curl7.86.0-3DEBIAN-CVE-2022-43552
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.7UBUNTU-CVE-2022-43552
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.7USN-5788-1

Affected products (as reported)

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

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

References