CVE-2021-45681
HIGH 7.5CVSS 3.1QueryInterface 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | derive-com-impl_project | derive-com-implcpe: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
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/derive-com-impl/RUSTSEC-2021-0083.md · Third Party Advisory, WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0083.html · Third Party Advisory, WEB, ADVISORY
- https://github.com/Connicpu/com-impl/issues/1 · WEB, REPORT
- https://github.com/Connicpu/com-impl/commit/9803f31fbd1717d482d848f041044d061fca6da7 · WEB
- https://github.com/Connicpu/com-impl · PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2021-45681 · ADVISORY
- https://crates.io/crates/derive-com-impl · PACKAGE
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)