{"id":"CVE-2021-28305","aliases":["GHSA-j8q9-5rp9-4mv9","RUSTSEC-2021-0037"],"url":"https://o3.security/vulnerability/CVE-2021-28305","summary":"Fix a use-after-free bug in diesels Sqlite backend","details":"An issue was discovered in the diesel crate before 1.4.6 for Rust. There is a use-after-free in the SQLite backend because the semantics of sqlite3_column_name are not followed.","published":"2021-03-12T09:15:12.783Z","modified":"2026-03-14T08:23:50.687627Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.01319,"percentile":0.6822,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"diesel","fixedVersion":"1.4.6"}],"fix":{"url":"https://github.com/diesel-rs/diesel/pull/2663","label":"diesel-rs/diesel#2663"},"references":[{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0037.html"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28305"},{"type":"WEB","url":"https://github.com/diesel-rs/diesel/pull/2663"},{"type":"PACKAGE","url":"https://github.com/diesel-rs/diesel"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-03-14T08:23:50.687627Z"}}