Skip to main content

CVE-2018-20997 — Use after free in openssl — CVE Details

CRITICAL

Use after free in openssl

Published August 25, 2021Updated November 8, 2023Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.74%). Schedule for your next planned update.

Does your project use an affected openssl version?

Paste your Cargo.lock to check it for CVE-2018-20997 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

An issue was discovered in the openssl crate before 0.10.9 for Rust. A use-after-free occurs in CMS Signing.

Advisory Timeline

  • First published August 25, 2021 (1919 days ago).
  • Last revised November 8, 2023 — 804 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update openssl to 0.10.9 or later
cargo update -p openssl --precise 0.10.9

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
openssl crates.io · Affected: All versions0.10.9

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2018-20997?
Use after free in openssl. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2018-20997?
CVE-2018-20997 affects openssl. It has a 1.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-20997 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
1.74%
EPSS percentile: 78.2

This places it in the top quartile of EPSS-scored vulnerabilities — 78.2% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.

Also Known As

GHSA-xjxc-vfw2-cg96
RUSTSEC-2018-0010

Related CVEs

  • CVE-2016-10931
    HIGH

    SSL/TLS MitM vulnerability due to insecure defaults

  • CVE-2016-10931
    HIGH

    Improper Certificate Validation in openssl

  • CVE-2026-41678
    HIGH

    rust-openssl has incorrect bounds assertion in aes key wrap

  • CVE-2026-41681
    HIGH

    rust-openssl: rustMdCtxRef::digest_final() writes past caller buffer with no length check

  • CVE-2026-41898
    HIGH

    rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer

  • CVE-2026-41676
    HIGH

    rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1

  • CVE-2026-42327
    HIGH

    rust-openssl has undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs

  • CVE-2026-41677
    LOW

    rust-opennssl has an Out-of-bounds read in PEM password callback when returning an oversized length

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock