CVE-2021-28305Diesel
Critical 9.8 No auth needed
Follow: this CVE · Diesel · Diesel We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 71
- Auth required
- No
- Published
- Mar 12, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-416
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Diesel.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | diesel |
< 1.4.6 |
1.4.6 |
cargo update -p diesel --precise 1.4.6 |
| crates.io | diesel |
≥ 0.0.0-0 < 1.4.6 |
1.4.6 |
cargo update -p diesel --precise 1.4.6 |
Per OSV / GitHub Advisories (GHSA-j8q9-5rp9-4mv9, RUSTSEC-2021-0037). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| diesel | diesel | < 1.4.6 |
Official sources
References
Links published by the sources. Open them with care.
- rustsec.org Third Party Advisory