Use After Free Affecting rust-diesel package, versions <2.0.3-1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.32% (68th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN14-RUSTDIESEL-11767531
  • published10 Aug 2025
  • disclosed12 Mar 2021

Introduced: 12 Mar 2021

CVE-2021-28305  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Debian:14 rust-diesel to version 2.0.3-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rust-diesel package and not the rust-diesel package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1