VDB

CVE-2018-16840

CVE-2018-16840 PUBLISHED CVSS 4.3 MEDIUM

Reported by redhat · Published October 31, 2018

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
libcurl-gnutlsArch Linux7.62.0-1
lib32-libcurl-compatArch Linux7.62.0-1
libcurlAmazon Linux7.61.1-9.amzn2.0.1
lib32-libcurl-gnutlsArch Linux7.62.0-1
curlhaxx7.62.0

Risk scores

CVSS 3.0
4.3
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Affected products

VendorProductVersions
The Curl Projectcurlfrom 7.59.0 to 7.61.1
archlibcurl-gnutls0
archlib32-libcurl-compat0
amazon:2libcurl0
archlib32-libcurl-gnutls0
alpinecurl0, 0
archlibcurl-compat0
archlib32-curl0
The Curl Projectcurl7.59.0
amazon:2curl0
archcurl0
amazon:2libcurl-devel0

Timeline

  • Oct 31, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (4 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (5 in total, the first dated here)
  • May 18, 2026 PoC Published
  • Sep 23, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-16840
vulnetix vdb fixes CVE-2018-16840

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-16840/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • GLSA-201903-03 vendor-advisoryx_refsource_GENTOO
  • x_refsource_CONFIRM
  • x_refsource_CONFIRM
  • 1042013 vdb-entryx_refsource_SECTRACK
  • x_refsource_MISC
  • USN-3805-1 vendor-advisoryx_refsource_UBUNTU
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›