Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-28305 EUVD-2022-4315GHSA-j8q9-5rp9-4mv9RUSTSEC-2021-0037

Fix a use-after-free bug in diesels Sqlite backend

Published Mar 12, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-diesel 2.0.3-1 —
Debian 13 rust-diesel 2.0.3-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io diesel < 1.4.6 1.4.6 GHSA-j8q9-5rp9-4mv9
crates.io diesel >= 0.0.0-0, < 1.4.6 1.4.6 RUSTSEC-2021-0037

References