
CVE catalog
CVE-2018-16840
curl: CVE-2018-16840
- Severity
- Medium · CVSS 5
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.40% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | curl | sid | 8.23.0-1 | fixed |
| Debian | curl | forky | 8.22.0-1 | fixed |
| Debian | curl | trixie | 8.14.1-2+deb13u5 | fixed |
| Debian | curl | trixie-security | 8.14.1-2+deb13u7 | fixed |
| Debian | curl | bookworm | 7.88.1-10+deb12u15 | fixed |
| Debian | curl | bookworm-security | 7.88.1-10+deb12u5 | fixed |
| Alpine | curl | 3.10 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.11 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.12 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.13 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.14 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.15 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.16 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.17 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.18 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.19 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.20 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.21 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.22 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.23 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.24 | 7.62.0-r0 | fixed |
| Alpine | curl | 3.5 | 7.61.1-r1 | fixed |
| Alpine | curl | 3.6 | 7.61.1-r1 | fixed |
| Alpine | curl | 3.7 | 7.61.1-r1 | fixed |
| Alpine | curl | 3.8 | 7.61.1-r1 | fixed |
| Alpine | curl | 3.9 | 7.62.0-r0 | fixed |
| Suse | curl | linux enterprise software development kit 11 sp4 | 7.37.0-70.38.1 | fixed |
| Suse | curl-openssl1 | linux enterprise server 11-security | 7.37.0-70.38.1 | fixed |
| Suse | curl | linux enterprise server 11 sp4 | 7.37.0-70.38.1 | fixed |
| Suse | curl | linux enterprise server for sap applications 11 sp4 | 7.37.0-70.38.1 | fixed |
| Suse | curl | linux enterprise desktop 12 sp3 | 7.37.0-37.31.1 | fixed |
| Suse | curl | linux enterprise software development kit 12 sp3 | 7.37.0-37.31.1 | fixed |
| Suse | curl | linux enterprise server 12 sp3 | 7.37.0-37.31.1 | fixed |
| Suse | curl | linux enterprise server for sap applications 12 sp3 | 7.37.0-37.31.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | curl | source | sid | 7.62.0-1 | not yet assigned | Not reported | Not reported |
| Debian | curl | source | forky | 7.62.0-1 | not yet assigned | Not reported | Not reported |
| Debian | curl | source | trixie | 7.62.0-1 | not yet assigned | Not reported | Not reported |
| Debian | curl | source | bookworm | 7.62.0-1 | not yet assigned | Not reported | Not reported |
| Alpine | curl | apk | 3.10 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.11 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.12 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.13 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.14 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.15 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.16 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.17 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.18 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.19 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.20 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.21 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.22 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.23 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.24 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.5 | 7.61.1-r1 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.6 | 7.61.1-r1 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.7 | 7.61.1-r1 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.8 | 7.61.1-r1 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Alpine | curl | apk | 3.9 | 7.62.0-r0 | Not reported | ALPINE-CVE-2018-16840 | Not reported |
| Suse | curl | rpm | linux enterprise software development kit 11 sp4 | 7.37.0-70.38.1 | Not reported | SUSE-SU-2018:3681-1 | Not reported |
| Suse | curl-openssl1 | rpm | linux enterprise server 11-security | 7.37.0-70.38.1 | Not reported | SUSE-SU-2018:3681-1 | Not reported |
| Suse | curl | rpm | linux enterprise server 11 sp4 | 7.37.0-70.38.1 | Not reported | SUSE-SU-2018:3681-1 | Not reported |
| Suse | curl | rpm | linux enterprise server for sap applications 11 sp4 | 7.37.0-70.38.1 | Not reported | SUSE-SU-2018:3681-1 | Not reported |
| Suse | curl | rpm | linux enterprise desktop 12 sp3 | 7.37.0-37.31.1 | Not reported | SUSE-SU-2018:3608-1 | Not reported |
| Suse | curl | rpm | linux enterprise software development kit 12 sp3 | 7.37.0-37.31.1 | Not reported | SUSE-SU-2018:3608-1 | Not reported |
| Suse | curl | rpm | linux enterprise server 12 sp3 | 7.37.0-37.31.1 | Not reported | SUSE-SU-2018:3608-1 | Not reported |
| Suse | curl | rpm | linux enterprise server for sap applications 12 sp3 | 7.37.0-37.31.1 | Not reported | SUSE-SU-2018:3608-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [curl]Unknown
Details (6)
7.88.1-10+deb12u15· amd64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u15· arm64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· amd64 · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· arm64 · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· amd64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· arm64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
- [libcurl3-gnutls]Unknown
Source package: [curl]
Details (6)
7.88.1-10+deb12u15· amd64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u15· arm64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· amd64 · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· arm64 · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· amd64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· arm64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
- [libcurl3-nss]Unknown
Source package: [curl]
Details (4)
7.88.1-10+deb12u15· amd64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u15· arm64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· amd64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· arm64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
- [libcurl4]Unknown
Source package: [curl]
Details (6)
7.88.1-10+deb12u15· amd64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u15· arm64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· amd64 · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· arm64 · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· amd64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· arm64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
- [libcurl4-doc]Unknown
Source package: [curl]
Details (6)
7.88.1-10+deb12u15· all · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u15· all · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· all · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· all · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· all · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· all · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
- [libcurl4-gnutls-dev]Unknown
Source package: [curl]
Details (6)
7.88.1-10+deb12u15· amd64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u15· arm64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· amd64 · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· arm64 · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· amd64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· arm64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
- [libcurl4-nss-dev]Unknown
Source package: [curl]
Details (4)
7.88.1-10+deb12u15· amd64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u15· arm64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· amd64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· arm64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
- [libcurl4-openssl-dev]Unknown
Source package: [curl]
Details (6)
7.88.1-10+deb12u15· amd64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u15· arm64 · bookwormFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· amd64 · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
8.14.1-2+deb13u2~bpo13+1· arm64 · bookworm-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· amd64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
7.88.1-10+deb12u5· arm64 · bookworm-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · bookworm; dsa · curl · debian · 12
[Debian 13 (Trixie)]
- [curl]Unknown
Details (5)
8.14.1-2+deb13u4· amd64 · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u4· arm64 · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· amd64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· arm64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u7· amd64 · trixie-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
- [libcurl3t64-gnutls]Unknown
Source package: [curl]
Details (5)
8.14.1-2+deb13u4· amd64 · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u4· arm64 · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· amd64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· arm64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u7· amd64 · trixie-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
- [libcurl4-doc]Unknown
Source package: [curl]
Details (5)
8.14.1-2+deb13u4· all · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u4· all · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· all · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· all · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u7· all · trixie-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
- [libcurl4-gnutls]Unknown
Source package: [curl]
Details (2)
8.21.0-2~bpo13+1· amd64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· arm64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
- [libcurl4-gnutls-dev]Unknown
Source package: [curl]
Details (5)
8.14.1-2+deb13u4· amd64 · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u4· arm64 · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· amd64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· arm64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u7· amd64 · trixie-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
- [libcurl4-openssl-dev]Unknown
Source package: [curl]
Details (5)
8.14.1-2+deb13u4· amd64 · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u4· arm64 · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· amd64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· arm64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u7· amd64 · trixie-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
- [libcurl4t64]Unknown
Source package: [curl]
Details (5)
8.14.1-2+deb13u4· amd64 · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u4· arm64 · trixieFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· amd64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.21.0-2~bpo13+1· arm64 · trixie-backportsFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
8.14.1-2+deb13u7· amd64 · trixie-securityFixed · Fixed:
7.62.0-1dsa · curl · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2018_3608-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2018-16840]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-16840]
- [https://osv.dev/vulnerability/SUSE-SU-2018:3608-1]
- [https://osv.dev/vulnerability/SUSE-SU-2018:3681-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-16840]
- [https://security-tracker.debian.org/tracker/CVE-2018-16840]
- [https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-16840.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2018/wid-sec-w-2023-1641.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]