Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. safe-transmute
  4. ›
  5. CVE-2018-21000

CVE-2018-21000: Heap overflow or corruption in safe-transmute

August 25, 2021 (updated June 13, 2023)

Affected versions of this crate switched the length and capacity arguments in the Vec::from_raw_parts() constructor, which could lead to memory corruption or data leakage.

References

  • github.com/advisories/GHSA-2v78-j59h-fmpf
  • github.com/nabijaczleweli/safe-transmute-rs
  • github.com/nabijaczleweli/safe-transmute-rs/commit/a134e06d740f9d7c287f74c0af2cd06206774364
  • github.com/nabijaczleweli/safe-transmute-rs/pull/36
  • nvd.nist.gov/vuln/detail/CVE-2018-21000
  • rustsec.org/advisories/RUSTSEC-2018-0013.html

Code Behaviors & Features

Detect and mitigate CVE-2018-21000 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.4.0 before 0.10.1

Fixed versions

  • 0.10.1

Solution

Upgrade to version 0.10.1 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Source file

cargo/safe-transmute/CVE-2018-21000.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:32 +0000.