Skip to content
Fencer Vulns
critical 9.8

CVE-2021-28305 json

Fix a use-after-free bug in diesels Sqlite backend

published 2021-03-05 5 y ago modified 2026-06-17 4 mo ago also GHSA-j8q9-5rp9-4mv9 , RUSTSEC-2021-0037 , EUVD-2022-4315

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.3%
EPSS 1.3% chance of exploitation in 30 days, percentile 71%
public exploits
0
none known

Summary

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.

Patch / fix

  • crates.io diesel 1.4.6
  • diesel diesel 1.4.6
  • rust-diesel Debian 14, Debian 13 2.0.3-1

debian advisories DEBIAN-CVE-2021-28305

  • diesel-cli Arch Linux 1.4.6-1

arch linux advisories AVG-1681

Exploit prediction

1.32% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P
OSV 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
crates.io diesel
<1.4.6
>=0.0.0-0, <1.4.6
1.4.6

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.