{"id":"CVE-2018-16840","published":"2018-10-31T18:00:00Z","modified":"2026-04-16T14:08:57Z","title":"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…","vendor":"The Curl Project","product":"curl","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03426,"percentile":0.89215,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://security.gentoo.org/glsa/201903-03","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16840","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securitytracker.com/id/1042013","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://curl.haxx.se/docs/CVE-2018-16840.html","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/3805-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]}],"priority":{"score":20.9,"factors":[{"name":"EPSS percentile","points":17.84},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"the-curl-project","affectedVersions":[{"vendor":"The Curl Project","product":"curl","versions":["from 7.59.0 to 7.61.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-16T14:08:48.093326Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2018-8636","exploited":false,"provenance":"source"}}