Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. anymap
  4. ›
  5. CVE-2021-38187

CVE-2021-38187: Incorrect cast in anymap

August 25, 2021

An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.

References

  • github.com/advisories/GHSA-hc92-9h3m-c39j
  • github.com/chris-morgan/anymap
  • github.com/chris-morgan/anymap/issues/37
  • nvd.nist.gov/vuln/detail/CVE-2021-38187
  • rustsec.org/advisories/RUSTSEC-2021-0065.html

Code Behaviors & Features

Detect and mitigate CVE-2021-38187 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 up to 0.12.1

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-681: Incorrect Conversion between Numeric Types
  • CWE-704: Incorrect Type Conversion or Cast

Source file

cargo/anymap/CVE-2021-38187.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:37 +0000.