CVE Database›Document archive›CVE-2018-16840

CVE-2018-16840

curl: Use-after-free when closing "easy" handle in Curl_close()

Loading…

Severity

Low

Red Hat Product Security

5

CVSS 3.0

Review impact separately from score.

Published · October 31, 2018

Updated · September 21, 2026

Description

A heap use-after-free flaw was found in curl versions from 7.59.0 through 7.61.1 in the code related to closing an easy handle. When closing and cleaning up an 'easy' handle in the Curl_close() function, the library code first frees a struct (without nulling the pointer) and might then subsequently erroneously write to a struct field within that already freed struct.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.0 · 5
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

CWE-416 · Use After Free