Skip to main content
Network Thinking Solutions Logo

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.

All CVEs
CVE-2018-16840Published 10/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.

Vendor advisory
CVSS9.8Critical

Overview

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.

Published
10/31/2018
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
curl
haxx
≥ 7.59.0, < 7.62.0

Verify advisory

Source
ubuntu linux
canonical
14.04

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
ubuntu linux
canonical
16.04

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
ubuntu linux
canonical
18.04

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
ubuntu linux
canonical
18.10

Verify advisory

Source
curl
The Curl Project
from 7.59.0 to 7.61.1

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 9.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.