Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Diesel versions before 2.2.3 are vulnerable to binary protocol misinterpretation caused by truncating casts. A value larger than 4 GiB can overflow the length prefix in the PostgreSQL protocol, so the server may read the rest of the string as protocol commands or other data. The source does not state what an attacker must control to trigger this. Upgrade diesel to version 2.2.3 or later. Until then, reject input over 4 GiB, including input that would encode to more than 4 GiB.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 8.1 | High | 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub Advisory Database |
- CISA KEV Not listed.
- EPSS No score.
Timeline
- 31 Oct 2026, 15:19 UTC First seen by agentprime
- 31 Oct 2026, 15:19 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-wq9x-qwcq-mmgf
- OSV: GHSA-wq9x-qwcq-mmgf
- github.com/diesel-rs/diesel/pull/4170
- github.com/diesel-rs/diesel/commit/9eccd7d6d705ac53618bfd478152e32ec3b4536c
- github.com/diesel-rs/diesel
- github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36
- rustsec.org/advisories/RUSTSEC-2024-0365.html