VDB

ALPINE-CVE-2018-16840

ALPINE-CVE-2018-16840 PUBLISHED CVSS 9.800000190734863 CRITICAL

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.

Risk Scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected Products

VendorProductVersions
Alpine:v3.15curl7.19.2-r0, 7.19.2-r1, 7.19.4-r0
Alpine:v3.17curl0, 7.19.2-r0, 7.19.2-r1
Alpine:v3.8curl7.59.0, 0, 7.61.1-r0
Alpine:v3.21curl0, 7.19.2-r0, 7.19.2-r1
Alpine:v3.24curl7.59.0, 0
Alpine:v3.11curl7.59.0, 0, 7.61.1-r0
Alpine:v3.20curl0, 7.19.2-r0, 7.19.2-r1
Alpine:v3.12curl7.21.7-r0, 0, 7.19.2-r0
Alpine:v3.19curl7.50.2-r0, 0, 7.19.2-r0
Alpine:v3.14curl7.49.1-r0, 0, 7.19.2-r0
Alpine:v3.10curl7.55.1-r0, 7.51.0-r1, 7.52.0-r0
Alpine:v3.16curl0, 0, 7.19.2-r0
Alpine:v3.5curl7.42.0-r0, 7.42.1-r0, 7.42.1-r1
Alpine:v3.23curl7.33.0-r0, 7.21.2-r0, 7.61.1-r0
Alpine:v3.9curl7.28.0-r0, 7.28.1-r0, 7.29.0-r0
Alpine:v3.13curl7.54.1-r0, 0, 7.19.2-r0
Alpine:v3.18curl7.19.2-r0, 0, 7.59.0
Alpine:v3.6curl7.46.0-r0, 7.28.1-r0, 7.29.0-r0
Alpine:v3.7curl7.21.5-r1, 0, 7.61.1-r0
Alpine:v3.22curl7.45.0-r1, 7.46.0-r0, 7.46.0-r1

Timeline

  • Oct 31, 2018 CVE Published
  • Apr 30, 2026 Distribution Patch
  • Jul 8, 2026 CVE Updated
Open in Interactive Console →
$ Console Community · 100/wk Open console ›