Vulnerabilities · 2018 · Haxx
CVE-2018-16840
Haxx Curl vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Curl, Ubuntu Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Haxx Curl runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- curl.haxx.se/docs/CVE-2018-16840.html · Patch
- github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f · Patch
- www.securitytracker.com/id/1042013 · Third Party Advisory
- bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16840 · Third Party Advisory
- security.gentoo.org/glsa/201903-03 · Third Party Advisory
- usn.ubuntu.com/3805-1/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2018-16840
- cve.org/CVERecord?id=CVE-2018-16840
More vulnerabilities in Haxx products
CVE-2025-15224CVE-2025-15079CVE-2025-14819CVE-2025-14524CVE-2025-14017CVE-2025-13034CVE-2025-10966CVE-2025-10148All 167
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.