{"id":"CVE-2021-45713","published":"2021-12-26T21:46:38Z","modified":"2024-08-04T04:47:02Z","title":"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.…","vendor":null,"product":null,"tier":"tail","description":{"text":"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_scalar_function has a use-after-free.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01219,"percentile":0.69386,"provenance":"source"},"cwes":[],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0128.html","tags":["x_refsource_MISC"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/rusqlite/RUSTSEC-2021-0128.md","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":13.88}]},"affected":[{"ecosystem":"crates.io","package":"rusqlite","vulnerableRanges":[">=0.25.0, <0.25.4",">=0.26.0, <0.26.2",">=0.26.0-0, <0.26.2"],"patched":["0.25.4","0.26.2"],"from":["GHSA-92cx-4xm7-jr9m","RUSTSEC-2021-0128"],"provenance":"source"}],"summary":{"text":"The rusqlite crate for Rust, in versions 0.25.x before 0.25.4 and 0.26.x before 0.26.2, contains a use-after-free flaw in its create_scalar_function API. An attacker who can get an application using the vulnerable crate to run crafted SQL or invoke its scalar functions could trigger the memory-safety error.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:41Z"},"euvd":{"id":"EUVD-2022-0538","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rusqlite-cve-2020-35873","parents":[{"from":"CVE-2020-35873","to":"CVE-2021-45713","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/lib.rs"],"commits":["https://github.com/rusqlite/rusqlite/commit/ac30e169ae51b262bc8cf7026469851ce39b23c6","https://github.com/rusqlite/rusqlite/commit/30f8c8c502675011603c4d066396bf317fd49e71","https://github.com/rusqlite/rusqlite/commit/612158507e90f41d409cd0fa80eb21c992b1bc08"],"basis":"rarely changed file"}]}]}}