Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. diesel
  4. ›
  5. GHSA-wq9x-qwcq-mmgf

GHSA-wq9x-qwcq-mmgf: Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts

August 23, 2024

The following presentation at this year’s DEF CON was brought to our attention on the Diesel Gitter Channel:

References

  • github.com/advisories/GHSA-wq9x-qwcq-mmgf
  • github.com/diesel-rs/diesel
  • github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs
  • github.com/diesel-rs/diesel/commit/9eccd7d6d705ac53618bfd478152e32ec3b4536c
  • github.com/diesel-rs/diesel/pull/4170
  • rustsec.org/advisories/RUSTSEC-2024-0365.html

Code Behaviors & Features

Detect and mitigate GHSA-wq9x-qwcq-mmgf with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.2.3

Fixed versions

  • 2.2.3

Solution

Upgrade to version 2.2.3 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

cargo/diesel/GHSA-wq9x-qwcq-mmgf.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 13 May 2025 00:16:07 +0000.