CVE-2018-16840 MEDIUM

CVE-2018-16840

Vendor The Curl Project
Product curl
Weakness CWE-416
Published October 31, 2018
Last update April 16, 2026

CVSS base score

4.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality None
Integrity Low

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

October 31, 2018 CVE published
April 16, 2026 Record updated