# CVE-2021-45718: Use After Free in rusqlite

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.22%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-12-07T12:00:00.000Z
- Modified: 2026-06-17T04:14:00.687Z
- Also known as: GHSA-4qr3-m7ww-hh9g, GHSA-87xh-9q6h-r5cc, GHSA-92cx-4xm7-jr9m, GHSA-cm8g-544f-p9x9, GHSA-f6f2-3w33-54r9, GHSA-g4g4-3pqw-8m7f, GHSA-g87r-23vw-7f87, GHSA-q89g-4vhh-mvvm, RUSTSEC-2021-0128
- Related: CVE-2021-45713, CVE-2021-45714, CVE-2021-45715, CVE-2021-45716, CVE-2021-45717, CVE-2021-45719
- Weaknesses: CWE-416
- Assigned by: mitre

## Description

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. rollback_hook has a use-after-free.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rusqlite (crates.io): from 0.25.0 before 0.25.4; from 0.26.0 before 0.26.2; from 0.26.0-0 before 0.26.2
- rusqlite_project rusqlite: from 0.25.0 before 0.25.4; from 0.26.0 before 0.26.2

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: rating High
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0128.html> (exploit, advisory, issue-tracking, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/rusqlite/RUSTSEC-2021-0128.md> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45717> (advisory)
- <https://github.com/rusqlite/rusqlite/issues/1048> (report, web)
- <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)

## Sources

- CVE List: [CVE-2021-45718](https://www.cve.org/CVERecord?id=CVE-2021-45718), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-4qr3-m7ww-hh9g](https://github.com/advisories/GHSA-4qr3-m7ww-hh9g), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-87xh-9q6h-r5cc](https://github.com/advisories/GHSA-87xh-9q6h-r5cc), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-92cx-4xm7-jr9m](https://github.com/advisories/GHSA-92cx-4xm7-jr9m), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-cm8g-544f-p9x9](https://github.com/advisories/GHSA-cm8g-544f-p9x9), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-f6f2-3w33-54r9](https://github.com/advisories/GHSA-f6f2-3w33-54r9), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-g4g4-3pqw-8m7f](https://github.com/advisories/GHSA-g4g4-3pqw-8m7f), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-g87r-23vw-7f87](https://github.com/advisories/GHSA-g87r-23vw-7f87), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-q89g-4vhh-mvvm](https://github.com/advisories/GHSA-q89g-4vhh-mvvm), CC-BY-4.0, modified 2024-03-15
- RustSec Advisory Database: [RUSTSEC-2021-0128](https://rustsec.org/advisories/RUSTSEC-2021-0128.html), CC0-1.0, modified 2024-03-15
- NVD: [CVE-2021-45718](https://nvd.nist.gov/vuln/detail/CVE-2021-45718), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45718 · Whole record: https://cve.day/CVE-2021-45718.json · Rebuilt by cve.day 2026-11-25T22:58:06.257Z
