CVE-2021-45716
HIGH 7.5CVSS 3.1Use After Free in rusqlite
An issue was discovered in the rusqlite crate 0.25.x before 0.25.4 and 0.26.x before 0.26.2 for Rust. create_collation has a use-after-free.
- Published
- 26 Dec 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-416
- Also known as
- CVE-2021-45713CVE-2021-45714CVE-2021-45715CVE-2021-45717CVE-2021-45718CVE-2021-45719GHSA-4qr3-m7ww-hh9gGHSA-87xh-9q6h-r5ccGHSA-92cx-4xm7-jr9mGHSA-cm8g-544f-p9x9GHSA-f6f2-3w33-54r9GHSA-g4g4-3pqw-8m7fGHSA-g87r-23vw-7f87GHSA-q89g-4vhh-mvvmRUSTSEC-2021-0128
- Sources
- NVDJSONOSV GHSA-4qr3-m7ww-hh9gJSONOSV GHSA-87xh-9q6h-r5ccJSONOSV GHSA-92cx-4xm7-jr9mJSONOSV GHSA-cm8g-544f-p9x9JSONOSV GHSA-f6f2-3w33-54r9JSONOSV GHSA-g4g4-3pqw-8m7fJSONOSV GHSA-g87r-23vw-7f87JSONOSV GHSA-q89g-4vhh-mvvmJSONOSV RUSTSEC-2021-0128JSON
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 |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| 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 | rusqlite_project | rusqlitecpe:2.3:a:rusqlite_project:rusqlite:*:*:*:*:*:rust:*:* |
>= 0.25.0, < 0.25.4 | 0.25.4 |
| NVD | rusqlite_project | rusqlitecpe:2.3:a:rusqlite_project:rusqlite:*:*:*:*:*:rust:*:* |
>= 0.26.0, < 0.26.2 | 0.26.2 |
| OSV | crates.io | rusqlite | >= 0.25.0, < 0.25.4 | 0.25.4 |
| OSV | crates.io | rusqlite | >= 0.26.0, < 0.26.2 | 0.26.2 |
| OSV | crates.io | rusqlite | >= 0.25.0, < 0.25.4; >= 0.26.0-0, < 0.26.2 | 0.25.4, 0.26.2 |
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/rusqlite/RUSTSEC-2021-0128.md · Exploit, Third Party Advisory, WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0128.html · Exploit, Issue Tracking, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-45717 · ADVISORY
- https://github.com/rusqlite/rusqlite/issues/1048 · WEB, REPORT
- https://github.com/rusqlite/rusqlite · PACKAGE, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-45715 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-45713 · ADVISORY
- https://github.com/rusqlite/rusqlite/pull/1049 · WEB
- https://github.com/rusqlite/rusqlite/commit/30f8c8c502675011603c4d066396bf317fd49e71 · WEB
- https://github.com/rusqlite/rusqlite/commit/612158507e90f41d409cd0fa80eb21c992b1bc08 · WEB
- https://github.com/rusqlite/rusqlite/commit/934e0c709e156753881da98b32e9853f9ffe4a1b · WEB
- https://github.com/rusqlite/rusqlite/commit/f4f95f8caf9fd53bffd0c19530be2484c644cc16 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-45716 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-45714 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-45718 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-45719 · ADVISORY
- https://crates.io/crates/rusqlite · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 26 Dec 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Dec 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Jun 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)