<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-17T08:37:13.598145+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/ghsa-wq9x-qwcq-mmgf</id>
    <title>GHSA-wq9x-qwcq-mmgf — Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts</title>
    <updated>2026-10-17T08:37:13.599329+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> crates.io: diesel</p>
<p>The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel:</p>
<p>&gt; SQL Injection isn't Dead: Smuggling Queries at the Protocol Level  
&gt; &lt;http://web.archive.org/web/20240812130923/https://media.defcon.org/DEF%20CON%2032/DEF%20CON%2032%20presentations/DEF%20CON%2032%20-%20Paul%20Gerste%20-%20SQL%20Injection%20Isn't%20Dead%20Smuggling%20Queries%20at%20the%20Protocol%20Level.pdf&gt;  
&gt; (Archive link for posterity.)
Essentially, encoding a value larger than 4GiB can cause the length prefix in the protocol to overflow, 
causing the server to interpret the rest of the string as binary protocol commands or other data.</p>
<p>It appears Diesel _does_ perform truncating casts in a way that could be problematic, 
for example: &lt;https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36&gt;</p>
<p>This code has existed essentially since the beginning, 
so it is reasonable to assume that all published versions `&lt;= 2.2.2` are affected.</p>
<p>## Mitigation</p>
<p>The prefered migration to the outlined problem is to update to a Diesel version newer than 2.2.2, which includes 
fixes for the problem.</p>
<p>As always, you should make sure your application is validating untrustworthy user input. 
Reject any input over 4 GiB, or any input that could _encode_ to a string longer than 4 GiB. 
Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound.</p>
<p>For web application…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/ghsa-wq9x-qwcq-mmgf"/>
  </entry>
</feed>
