Advisory record · GHSA-wq9x-qwcq-mmgf

Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts

CVSS 8.1 High

Published by the GitHub Advisory Database at 23 Aug 2024, 18:51 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
dieselcrates.io<2.2.32.2.3
Identifiers
GHSA-wq9x-qwcq-mmgf · RUSTSEC-2024-0365
Weakness (CWE)
CWE-89
Published
23 Aug 2024
Updated
28 Oct 2025

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.

Written 8 Nov 2026.

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

ScoreRatingCVSSVectorSource
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

  1. 31 Oct 2026, 15:19 UTC First seen by agentprime
  2. 31 Oct 2026, 15:19 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.