{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2018-16840","published":"2018-10-31T18:29:00.307000Z","last_modified":"2026-06-17T01:44:52.920000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-416"],"cpes":[{"criteria":"cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*","part":"a","vendor":"haxx","product":"curl","version_start_including":"7.59.0","version_end_excluding":"7.62.0"},{"criteria":"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*","part":"o","vendor":"canonical","product":"ubuntu_linux","version":"14.04"},{"criteria":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","part":"o","vendor":"canonical","product":"ubuntu_linux","version":"16.04"},{"criteria":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","part":"o","vendor":"canonical","product":"ubuntu_linux","version":"18.04"},{"criteria":"cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*","part":"o","vendor":"canonical","product":"ubuntu_linux","version":"18.10"}],"cpes_truncated":false,"vendors":["haxx","canonical"],"products":["haxx/curl","canonical/ubuntu_linux"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.03426,"percentile":0.897,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2018-16840/","html_en":"/en/cve/CVE-2018-16840/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-16840","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-16840"},"untrusted":{"vendor_name":"Haxx","product_name":"Curl","desc_en":"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.","affected":[{"untrusted_vendor":"The Curl Project","untrusted_product":"curl","versions":[]}],"references":[{"url":"http://www.securitytracker.com/id/1042013","tags":["Third Party Advisory","VDB Entry"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16840","tags":["Issue Tracking","Third Party Advisory"]},{"url":"https://curl.haxx.se/docs/CVE-2018-16840.html","tags":["Patch","Vendor Advisory"]},{"url":"https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f","tags":["Patch","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201903-03","tags":["Third Party Advisory"]},{"url":"https://usn.ubuntu.com/3805-1/","tags":["Third Party Advisory"]}]}}