Skip to content
OpenAdvisories
Medium · 4.3 CVE-2018-16840 EUVD-2018-8636GHSA-6vwf-m72q-cw8h

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 closin…

Published Oct 31, 2018 · Updated Apr 16, 2026 · 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.

Affected products

VendorProductAffectedFixed
The Curl Project curl from 7.59.0 to 7.61.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 7.62.0-1 —
Debian 13 curl 7.62.0-1 —
Debian 12 curl 7.62.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS curl 7.58.0-2ubuntu3.5 USN-3805-1
Ubuntu 16.04 LTS curl 7.47.0-1ubuntu2.11 USN-3805-1
Ubuntu 14.04 LTS curl 7.35.0-1ubuntu2.19 USN-3805-1
ReleasePackageFixed inAdvisory
SLES 15 curl 7.60.0-3.14.3 SUSE-SU-2018:3624-1
SLES 12 SP4 curl 7.60.0-4.3.1 SUSE-SU-2019:0339-1
SLES 12 SP3 curl 7.37.0-37.31.1 SUSE-SU-2018:3608-1
SLES 11 SP4 curl 7.37.0-70.38.1 SUSE-SU-2018:3681-1
SLES 11 curl-openssl1 7.37.0-70.38.1 SUSE-SU-2018:3681-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP4 curl 7.60.0-4.3.1 SUSE-SU-2019:0339-1
SLES for SAP 12 SP3 curl 7.37.0-37.31.1 SUSE-SU-2018:3608-1
SLES for SAP 11 SP4 curl 7.37.0-70.38.1 SUSE-SU-2018:3681-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 7.79.1-1.1 openSUSE-SU-2024:10582-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 7.62.0-r0 —
Alpine v3.23 curl 7.62.0-r0 —
Alpine v3.22 curl 7.62.0-r0 —
Alpine v3.21 curl 7.62.0-r0 —
Alpine v3.20 curl 7.62.0-r0 —
Show 15 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 7.62.0-r0 —
Alpine v3.18 curl 7.62.0-r0 —
Alpine v3.17 curl 7.62.0-r0 —
Alpine v3.16 curl 7.62.0-r0 —
Alpine v3.15 curl 7.62.0-r0 —
Alpine v3.14 curl 7.62.0-r0 —
Alpine v3.13 curl 7.62.0-r0 —
Alpine v3.12 curl 7.62.0-r0 —
Alpine v3.11 curl 7.62.0-r0 —
Alpine v3.10 curl 7.62.0-r0 —
Alpine v3.9 curl 7.62.0-r0 —
Alpine v3.8 curl 7.61.1-r1 —
Alpine v3.7 curl 7.61.1-r1 —
Alpine v3.6 curl 7.61.1-r1 —
Alpine v3.5 curl 7.61.1-r1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 curl +2 7.61.1-9.amzn2.0.1 ALAS2-2019-1162

Advisories 8

References