Skip to content

CVE-2021-28305 Fix a use-after-free bug in diesels Sqlite backend

CriticalCVSS 9.8 EPSS 1.3%
Published
Updated
Exploit status
No public exploit known
Technology
Debian

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.

Upgrade path

4 packages: 4 fixed.

PackageAffectedFixed inStatus
crates.io diesel(crates.io) < 1.4.6; >= 0.0.0-0, < 1.4.6 1.4.6 Fixed
debian/rust-diesel(Debian 13) < 2.0.3-1 2.0.3-1 Fixed
debian/rust-diesel(Debian 14) < 2.0.3-1 2.0.3-1 Fixed
diesel < 1.4.6 1.4.6 Fixed

Affected products

ProductAffected versionsFixed in
crates.io diesel(crates.io) < 1.4.6 1.4.6
debian/rust-diesel(Debian:14) < 2.0.3-1 2.0.3-1
debian/rust-diesel(Debian:13) < 2.0.3-1 2.0.3-1
crates.io diesel(crates.io) >= 0.0.0-0, < 1.4.6 1.4.6
diesel < 1.4.6 1.4.6

References