# RUSTSEC-2026-0135 - Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend

Source: https://junglewise.ai/threats/rustsec-2026-0135-unsound-transmute-while-debug-display-printing-batch-c2b1c0e1  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-24  
License: CC BY 4.0 with a link back

Severity: info · Published 2026-04-24

Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend

Technologies: [diesel (crates.io)](https://junglewise.ai/threats/technologies/diesel). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 24 April 2026.

**Which products and versions are affected?** diesel (crates.io) SEMVER:introduced=0.0.0-0,fixed=2.3.8.

**Is there a fix for This vulnerability?** Yes. diesel (crates.io): upgrade to 2.3.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run diesel (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- diesel (crates.io): upgrade to 2.3.8 or later

  ```sh
  cargo update -p diesel
  ```


## Affected products

- diesel (crates.io) SEMVER:introduced=0.0.0-0,fixed=2.3.8

## Related threats

- [Diesel use after free in SqliteConnection deserialize_readonly_database](https://junglewise.ai/threats/diesel-use-after-free-in-sqliteconnection-deserialize-readonly-database-dadf7b98)
- [RUSTSEC-2026-0172 - Possible use after free when deserializing a SQLite database via…](https://junglewise.ai/threats/rustsec-2026-0172-possible-use-after-free-when-deserializing-a-sqlite-3bbb802d)
- [Diesel argument injection in PostgreSQL COPY FROM and COPY TO](https://junglewise.ai/threats/diesel-argument-injection-in-postgresql-copy-from-and-copy-to-1fd3966b)
- [Diesel unaligned data access in SqliteAggregate](https://junglewise.ai/threats/diesel-unaligned-data-access-in-sqliteaggregate-27fb382f)
- [Diesel SQLite backend UTF-8 corruption in deserialization](https://junglewise.ai/threats/diesel-sqlite-backend-utf-8-corruption-in-deserialization-42824b77)
