Back
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. When…
Medium4.3EPSS 3.4%
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.0 | Medium4.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 3.4% · top 11% of all CVEs (4 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.3.
Weakness
Affected products
- affected from 7.59.0 to 7.61.1
References (6)
- GLSA-201903-03 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16840 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f (opens in a new tab)x_refsource_CONFIRMx_transferred
- 1042013 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- https://curl.haxx.se/docs/CVE-2018-16840.html (opens in a new tab)x_refsource_MISCx_transferred
- USN-3805-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-16840)Record last updated .