Critical severity · published Oct 31, 2018
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
9.8
CVSS
3.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)3.4% · higher than 89% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CU
Curl · Haxx
7.59.0 before 7.62.0 · source: NVD
UL
Ubuntu Linux · Canonical
14.04; 16.04; 18.04; 18.10 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-16840
CVE.org
https://www.cve.org/CVERecord?id=CVE-2018-16840
Third Party Advisory
http://www.securitytracker.com/id/1042013
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16840
Patch
https://curl.haxx.se/docs/CVE-2018-16840.html
Patch
https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f
Third Party Advisory
https://security.gentoo.org/glsa/201903-03
Third Party Advisory
https://usn.ubuntu.com/3805-1/
More from Ubuntu Linux
9.8
CVE-2020-11651
SaltStack Salt Authentication Bypass Vulnerability
9.8
CVE-2020-7247
OpenSMTPD Remote Code Execution Vulnerability
9.8
CVE-2019-11043
Underflow in PHP-FPM can lead to RCE
9.8
CVE-2019-16928
Exim Out-of-bounds Write Vulnerability
9.8
CVE-2019-10149
Exim Mail Transfer Agent (MTA) Improper Input Validation
