diesel
A safe, extensible ORM and Query Builder for Rust
Activity
- Latest release
- 1w ago
- Total releases
- 98
- Cadence
- ~35 days
- Last 12 months
- 11
Reach
- Downloads
- 35.0M
- Stars
- 14.2k
Details
- License
- MIT OR Apache-2.0
- First release
- Nov 29, 2015
| Version | Released | |
|---|---|---|
2.3.13
patch
|
2.3.13
patch
Dependencies (33)
+ 25 more
Changelog
Compare changes
|
|
2.3.12
patch
|
2.3.12
patch
Dependencies (33)
+ 25 more
Changelog
Compare changes
|
|
2.3.11
unknown
|
2.3.11
unknown
Dependencies (33)
+ 25 more
Changelog
Compare changes
|
|
2.3.10
unknown
|
2.3.10
unknown
Dependencies (33)
+ 25 more
Changelog
Compare changes
|
|
2.3.9
unknown
1 CVE
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev |
2.3.9
unknown
Dependencies (33)
+ 25 more
Changelog
Compare changes
|
|
2.3.8
unknown
1 CVE
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev |
2.3.8
unknown
Dependencies (33)
+ 25 more
Changelog
Compare changes
|
|
2.3.7
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.3.7
unknown
Dependencies (33)
+ 25 more
Changelog
Compare changes
|
|
2.3.6
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.3.6
unknown
Dependencies (33)
+ 25 more
Changelog
Compare changes
|
|
2.3.5
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.3.5
unknown
Dependencies (33)
+ 25 more
Changelog
Compare changes
|
|
2.3.4
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.3.4
unknown
Dependencies (34)
+ 26 more
Changelog
Compare changes
|
|
2.3.3
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.3.3
unknown
Dependencies (34)
+ 26 more
Changelog
Compare changes
|
|
2.3.2
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.3.2
unknown
Dependencies (34)
+ 26 more
Changelog
Compare changes
|
|
2.3.1
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.3.1
unknown
Dependencies (34)
+ 26 more
Changelog
Compare changes
|
|
2.3.0
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.3.0
unknown
Dependencies (34)
+ 26 more
Changelog
Compare changes
|
|
2.2.12
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.2.12
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.11
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.2.11
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.10
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.2.10
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.9
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.2.9
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.8
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.2.8
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.7
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.2.7
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.6
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.2.6
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.5
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.2.5
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.4
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.2.4
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.3
unknown
6 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev |
2.2.3
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.2
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.2.2
unknown
Dependencies (29)
+ 21 more
Changelog
Compare changes
|
|
2.2.1
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.2.1
unknown
Dependencies (28)
+ 20 more
Changelog
Compare changes
|
|
2.2.0
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.2.0
unknown
Dependencies (28)
+ 20 more
Changelog
Compare changes
|
|
2.1.6
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.1.6
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.1.5
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.1.5
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.1.4
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.1.4
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.1.3
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.1.3
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.1.2
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.1.2
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.1.1
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.1.1
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.1.0
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.1.0
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.0.4
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.0.4
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.0.3
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.0.3
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.0.2
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.0.2
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.0.1
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.0.1
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.0.0
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.0.0
unknown
Dependencies (26)
+ 18 more
Changelog
Compare changes
|
|
2.0.0-rc.1
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.0.0-rc.1
unknown
Dependencies (25)
+ 17 more
Changelog
Compare changes
|
|
2.0.0-rc.0
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
2.0.0-rc.0
unknown
Dependencies (24)
+ 16 more
Changelog
Compare changes
|
|
1.4.8
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
1.4.8
unknown
Dependencies (23)
+ 15 more
Changelog
Compare changes
|
|
1.4.7
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
1.4.7
unknown
Dependencies (23)
+ 15 more
Changelog
Compare changes
|
|
1.4.6
unknown
7 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev |
1.4.6
unknown
Dependencies (23)
+ 15 more
Changelog
Compare changes
|
|
1.4.5
unknown
8 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev
CVE-2021-28305
GHSA-j8q9-5rp9-4mv9
RUSTSEC-2021-0037
May 24, 2022
Fix a use-after-free bug in diesels Sqlite backend
9.8
/ 10
Critical
Network
Low
None
None
Unchanged
High
High
High
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. Fixed in
1.4.6
References Updated Nov 08, 2023 · Source: OSV.dev |
1.4.5
unknown
Dependencies (23)
+ 15 more
Changelog
Compare changes
|
|
1.4.4
unknown
8 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev
CVE-2021-28305
GHSA-j8q9-5rp9-4mv9
RUSTSEC-2021-0037
May 24, 2022
Fix a use-after-free bug in diesels Sqlite backend
9.8
/ 10
Critical
Network
Low
None
None
Unchanged
High
High
High
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. Fixed in
1.4.6
References Updated Nov 08, 2023 · Source: OSV.dev |
1.4.4
unknown
Dependencies (24)
+ 16 more
Changelog
Compare changes
|
|
1.4.3
unknown
8 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev
CVE-2021-28305
GHSA-j8q9-5rp9-4mv9
RUSTSEC-2021-0037
May 24, 2022
Fix a use-after-free bug in diesels Sqlite backend
9.8
/ 10
Critical
Network
Low
None
None
Unchanged
High
High
High
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. Fixed in
1.4.6
References Updated Nov 08, 2023 · Source: OSV.dev |
1.4.3
unknown
Dependencies (23)
+ 15 more
Changelog
Compare changes
|
|
1.4.2
unknown
8 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev
CVE-2021-28305
GHSA-j8q9-5rp9-4mv9
RUSTSEC-2021-0037
May 24, 2022
Fix a use-after-free bug in diesels Sqlite backend
9.8
/ 10
Critical
Network
Low
None
None
Unchanged
High
High
High
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. Fixed in
1.4.6
References Updated Nov 08, 2023 · Source: OSV.dev |
1.4.2
unknown
Dependencies (23)
+ 15 more
Changelog
Compare changes
|
|
1.4.1
unknown
8 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev
CVE-2021-28305
GHSA-j8q9-5rp9-4mv9
RUSTSEC-2021-0037
May 24, 2022
Fix a use-after-free bug in diesels Sqlite backend
9.8
/ 10
Critical
Network
Low
None
None
Unchanged
High
High
High
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. Fixed in
1.4.6
References Updated Nov 08, 2023 · Source: OSV.dev |
1.4.1
unknown
Dependencies (23)
+ 15 more
Changelog
Compare changes
|
|
1.4.0
unknown
8 CVEs
GHSA-ggxf-9f6j-w742
RUSTSEC-2026-0172
Jul 16, 2026
Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database`
Medium
Network
Low
None
None
Diesel allows loading a SQLite database from a byte buffer, represented as This vulnerability affects users of MitigationThe 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. ResolutionDiesel now stores a copy of the buffer inside of the Fixed in
2.3.10
References Updated Jul 17, 2026 · Source: OSV.dev
GHSA-m9p2-fxp5-v3fp
RUSTSEC-2026-0136
May 19, 2026
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`
Medium
Network
Low
None
None
Diesel allows users to configure various options for PostgreSQL's Diesel did not check if any these user-provided options contain a quote character This vulnerability affects any user of MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly escapes any quotes contained in the provided arguments. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-q8x8-jrhj-fh9p
RUSTSEC-2026-0137
May 19, 2026
Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
Medium
Network
High
None
None
Diesel allows to register custom aggregate SQL functions for SQLite via the To store an instance of the custom aggregate processor Diesel relied on the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation. Fixed in
2.3.8
References Updated May 20, 2026 · Source: OSV.dev
GHSA-h5x4-m2qf-r4f2
RUSTSEC-2026-0111
May 05, 2026
Diesel's SQLite backend has possible UTF-8 corruption
High
Network
Low
None
None
Diesel uses the MitigationThe preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now correctly checks whether the provides byte buffer is actually valid UTF-8, instead of relying on SQLite's documentation. This fix is included in the Fixed in
2.3.8
References Updated Jun 18, 2026 · Source: OSV.dev
RUSTSEC-2026-0134
Apr 24, 2026
Unsound access to padding bytes while serializing date/time values using the Mysql backend Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their Diesel replicated this type as This vulnerability affects any user serializing date/time values using the Mysql backend. MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now manually serializes the relevant data without accessing the padding bytes. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
RUSTSEC-2026-0135
Apr 24, 2026
Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend Diesel allows users to output the generated SQL for any query DSL construct via th For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using MitigationThe preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem. ResolutionDiesel now uses a sound cast instead. Fixed in
2.3.8
References Updated May 13, 2026 · Source: OSV.dev
GHSA-wq9x-qwcq-mmgf
RUSTSEC-2024-0365
Aug 23, 2024
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts
High
Network
Low
None
None
The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:
It appears Diesel does perform truncating casts in a way that could be problematic, for example: https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36 This code has existed essentially since the beginning,
so it is reasonable to assume that all published versions MitigationThe prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes fixes for the problem. As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound. For web application backends, consider adding some middleware that limits the size of request bodies by default. ResolutionDiesel now uses to prevent casts that will lead to precision loss or other trunctations. Additionally we performed an audit of the relevant code. A fix is included in the Fixed in
2.2.3
References
Updated Oct 28, 2025 · Source: OSV.dev
CVE-2021-28305
GHSA-j8q9-5rp9-4mv9
RUSTSEC-2021-0037
May 24, 2022
Fix a use-after-free bug in diesels Sqlite backend
9.8
/ 10
Critical
Network
Low
None
None
Unchanged
High
High
High
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. Fixed in
1.4.6
References Updated Nov 08, 2023 · Source: OSV.dev |
1.4.0
unknown
Dependencies (23)
+ 15 more
Changelog
Compare changes
|