{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2018-16840","id":"CVE-2018-16840","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 ea…","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.","descriptionLong":"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.","published":"2018-10-31T18:00:00.000Z","updated":"2026-10-20T13:32:43.153925769Z","reserved":"2018-09-11T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.0","score":4.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"redhat"},{"version":"3.0","score":4.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"redhat.com"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":["The Curl Project curl"],"affectedProducts":[{"vendor":"The Curl Project","product":"curl","defaultStatus":null,"versions":[{"status":"affected","version":"from 7.59.0 to 7.61.1"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":["CURL-CVE-2018-16840"],"references":[{"url":"https://security.gentoo.org/glsa/201903-03","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16840","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Third Party Advisory","report"]},{"url":"https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"http://www.securitytracker.com/id/1042013","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://curl.haxx.se/docs/CVE-2018-16840.html","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://usn.ubuntu.com/3805-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.03426,"epssPercentile":0.89167,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2018-16840","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-16840","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2018-16840","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2018-16840","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["curl"],"critical":["CVSS 9.8 in a widely used technology"],"attention":null}