Loading advisory.
Loading advisory.
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 MYSQL_TIME type.
Published 2026-04-24 12:00 UTC · Modified 2026-05-13 14:30 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected |
|---|
| Fixed in |
|---|
| Upgrade command |
|---|
| diesel | crates.io | >= 0.0.0-0, < 2.3.8 | 2.3.8 | cargo add diesel@2.3.8 |
|---|
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 MYSQL_TIME type.
Diesel replicated this type as #[repr(C)] struct, populated all the fields of this struct and then casted this value to an array of bytes. As this cast exposes padding bytes contained in this struct, this is undefined behaviour.
This vulnerability affects any user serializing date/time values using the Mysql backend.
The preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem.
Diesel now manually serializes the relevant data without accessing the padding bytes.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.