GHSA-q8x8-jrhj-fh9p
Diesel allows to register custom aggregate SQL functions for SQLite via the `SqliteAggregate` interface. To store an instance of the custom aggregate processor Diesel relied on the `sqlite3_aggregate_context` function provided by sqlite. This function doesn't provide any guarantees about alignment of the returned allocation, which in turn can lead to problems if the type implementing requires a special alignment, e.g. via a custom `#[align(x)]` attribute on the type implementing this trait. This affects any user of `SqliteAggregate` that registers the custom aggregate function with an SQLite connection, while using a non-standard alignment on the type implementing this trait. ## Mitigation The preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem. ## Resolution Diesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation.
Properties
- ghsa_id
- GHSA-q8x8-jrhj-fh9p
- severity
- medium
- summary
- Diesel: Possible unaligned data access for implementations of `SqliteAggregate`
- cve_id
- GHSA-q8x8-jrhj-fh9p
- is_ghsa_only
- true
- ghsa_published
- 2026-05-19T19:39:37Z
- source_url
- https://github.com/advisories/GHSA-q8x8-jrhj-fh9p
- ghsa_updated
- 2026-05-19T19:39:39Z
Related Entities (4)
HAS_WEAKNESS (1)
REPORTED_BY (1)
VULNERABLE_TO (1)
AFFECTS (1)
Explore deeper with Ninja Signal's threat intelligence graph