Read the docs
TI-2026-67072 Aliases GHSA-ggxf-9f6j-w742

Diesel has possible use after free when deserializing a SQLite database via…

Priority LOW 38CWE-416Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

Diesel allows loading a SQLite database from a byte buffer, represented as `&[u8]`, at runtime via the `SqliteConnection::deserialize_readonly_database` function. In previous versions of Diesel, this buffer was passed directly to libsqlite3. Since libsqlite3 requires the buffer to remain alive for as long as the database connection is open and Diesel did not ensure this as part of its safe API, callers of `SqliteConnection::deserialize_readonly_database` could drop the buffer prematurely. This prematurely drop caused libsqlite3 to operate on freed memory. This vulnerability affects users of `SqliteConnection::deserialize_readonly_database` who drop the buffer passed to the function before they drop the database connection. ## Mitigation The preferred mitigation to the outlined problem is to update to Diesel version 2.3.10 or newer, which includes a fix for the problem. Alternatively users need to take to keep the buffer alive until the connection is dropped. ## Resolution Diesel now stores a copy of the buffer inside of the `SqliteConnection` object itself to keep it alive as long as the underlying libsqlite3 connection exists.

Why it matters now

Fix Fixed diesel (crates.io): 2.3.10

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—diesel (crates.io)before 2.3.102.3.10Patch availableGHSA-ggxf-9f6j-w742
  • diesel (crates.io) Vendor— Affected before 2.3.10 Fixed in 2.3.10 Patch available GHSA-ggxf-9f6j-w742

Remediation

  • Fix · GHSA-ggxf-9f6j-w742 diesel (crates.io) Fixed in 2.3.10 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-ggxf-9f6j-w742

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences