🛡️ GHSA-ggxf-9f6j-w742 — diesel
Description
Diesel has possible use after free when deserializing a SQLite database via SqliteConnection::deserialize_readonly_database
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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity low, availability low.
Weakness class
GHSA-ggxf-9f6j-w742 is classified as CWE-416: Use After Free. Memory is used after being released, so its contents may already belong to something else.
Affected software
GHSA-ggxf-9f6j-w742 is recorded against 1 package.
- diesel
Timeline and source
Published on 16 July 2026 and last revised on 17 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| diesel | — | — |
References
Similar Threats
- Unknown RUSTSEC-2026-0172
- Unknown GHSA-m9p2-fxp5-v3fp
- Unknown GHSA-q8x8-jrhj-fh9p
- Low GHSA-ff9q-rm55-q7qr
- High GHSA-h5x4-m2qf-r4f2
More GHSA G advisories
Browse all of GHSA G in the advisory index.
- GHSA-gfp8-mp24-5vxg
- GHSA-gfvf-2f25-f34r
- GHSA-gfxp-f68g-8x78
- GHSA-gg4x-fgg2-h9w9
- GHSA-gg76-hg3v-5q6c
- GHSA-ggm6-h3mx-cmmp
- GHSA-ggpf-24jw-3fcw
- GHSA-ggrh-grj3-vfvw
- GHSA-ggxf-37hm-9wqf
- GHSA-gh4h-34gr-87r7
- GHSA-gh9f-6xm2-c4j2
- GHSA-gh9p-q46p-57g2
- GHSA-gh24-c683-79r2
- GHSA-ghc5-95c2-vwcv
- GHSA-ghc8-5cgm-5rpf
- GHSA-ghmh-jhmj-wcmf
Free Vulnerability Check
Is your site affected by GHSA-ggxf-9f6j-w742?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-ggxf-9f6j-w742 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.