Security mailing lists by PureSourceCode

CVE-2021-45681

HIGH 7.5CVSS 3.1

QueryInterface should call AddRef before returning pointer

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.

Published
27 Dec 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-787
Also known as
GHSA-9rg7-3j4f-cf4xGHSA-w4cc-pc2h-whcjRUSTSEC-2021-0083
Sources
NVDJSONOSV GHSA-9rg7-3j4f-cf4xJSONOSV GHSA-w4cc-pc2h-whcjJSONOSV RUSTSEC-2021-0083JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD derive-com-impl_project derive-com-impl
cpe:2.3:a:derive-com-impl_project:derive-com-impl:*:*:*:*:*:rust:*:*
< 0.1.2 0.1.2
OSV crates.io derive-com-impl < 0.1.2 0.1.2
OSV crates.io derive-com-impl all versions
OSV crates.io derive-com-impl >= 0.0.0-0, < 0.1.2 0.1.2

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 27 Dec 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Jan 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Jun 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.