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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- nvd.nist.gov third-party-advisory vendor-advisory
- rustsec.org third-party-advisory vendor-advisory
- github.com patch
- github.com
- Debian Security Tracker CVE-2021-28305 vendor-advisory
- bugs.debian.org issue-tracking
- github.com product
- crates.io product