Skip to content

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

Critical severity GitHub Reviewed Published May 24, 2022 to the GitHub Advisory Database • Updated Jan 27, 2023

Package

cargo diesel (Rust)

Affected versions

< 1.4.6

Patched versions

1.4.6

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.

References

Published by the National Vulnerability Database Mar 12, 2021
Published to the GitHub Advisory Database May 24, 2022
Reviewed Jun 16, 2022
Last updated Jan 27, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2021-28305

GHSA ID

GHSA-j8q9-5rp9-4mv9

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.