Use After Free in Haxx Curl

CVE-2018-16840

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.

Vulnerability class: Use-After-Free

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.034 (88.4th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 88th percentile — 88.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2018-16840: held from 0.034 to 0.034.

EPSS over last 30 days · oldest: 0.034 · newest: 0.034 · change: 0.000

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2018-16840?
CVE-2018-16840 is a critical-severity vulnerability in Haxx Curl, classified under Use After Free. CVSS score: 9.8/10. Published 2018-10-31.
How severe is CVE-2018-16840?
Critical severity. CVSS v3 base score is 9.8 out of 10.
Is CVE-2018-16840 known to be exploited?
7 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.