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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-diesel | 2.0.3-1 | — |
| Debian 13 | rust-diesel | 2.0.3-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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 |