Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. derive-com-impl
  4. ›
  5. CVE-2021-45681

CVE-2021-45681: Out-of-bounds Write in derive-com-impl

January 6, 2022 (updated January 7, 2022)

An issue was discovered in the derive-com-impl crate before 0.1.2 for Rust. An invalid reference (and memory corruption) can occur because AddRef might not be called before returning a pointer.

References

  • github.com/Connicpu/com-impl/issues/1
  • github.com/advisories/GHSA-w4cc-pc2h-whcj
  • github.com/connicpu/com-impl
  • nvd.nist.gov/vuln/detail/CVE-2021-45681
  • raw.githubusercontent.com/rustsec/advisory-db/main/crates/derive-com-impl/RUSTSEC-2021-0083.md
  • rustsec.org/advisories/RUSTSEC-2021-0083.html

Code Behaviors & Features

Detect and mitigate CVE-2021-45681 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

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-787: Out-of-bounds Write

Source file

cargo/derive-com-impl/CVE-2021-45681.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:14 +0000.