Advisory

GHSA-j8q9-5rp9-4mv9

Also known as: CVE-2021-28305, RUSTSEC-2021-0037

Summary

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

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-24 17:44 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

diesel

crates.io · All systems

Affected

  • introduced 0, fixed 1.4.6 (semver)

Fixed versions

1.4.6

Fix

  • Fixed version 1.4.6
    cargo update -p diesel --precise 1.4.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences