Live threats

All CVEs / Diesel

CVE-2021-28305Diesel

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Diesel.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
dieseldiesel< 1.4.6

Official sources

References

Links published by the sources. Open them with care.