{"id":"GHSA-j8q9-5rp9-4mv9","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.","aliases":["CVE-2021-28305","RUSTSEC-2021-0037"],"modified":"2023-11-08T04:05:29.499484Z","published":"2022-05-24T17:44:31Z","database_specific":{"nvd_published_at":"2021-03-12T09:15:00Z","cwe_ids":["CWE-416"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2022-06-16T23:50:24Z"},"references":[{"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"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0037.html"}],"affected":[{"package":{"name":"diesel","ecosystem":"crates.io","purl":"pkg:cargo/diesel"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.4.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-j8q9-5rp9-4mv9/GHSA-j8q9-5rp9-4mv9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}