<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://cve.radiocsirt.org</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Sat, 17 Oct 2026 08:37:10 +0000</lastBuildDate>
    <item>
      <title>GHSA-wq9x-qwcq-mmgf — Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts</title>
      <link>https://cve.radiocsirt.org/vuln/ghsa-wq9x-qwcq-mmgf</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: diesel&lt;/p&gt;
&lt;p&gt;The following presentation at this year&amp;#39;s DEF CON was brought to our attention on the Diesel Gitter Channel:&lt;/p&gt;
&lt;p&gt;&amp;gt; SQL Injection isn&amp;#39;t Dead: Smuggling Queries at the Protocol Level  
&amp;gt; &amp;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&amp;#39;t%20Dead%20Smuggling%20Queries%20at%20the%20Protocol%20Level.pdf&amp;gt;  
&amp;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.&lt;/p&gt;
&lt;p&gt;It appears Diesel _does_ perform truncating casts in a way that could be problematic, 
for example: &amp;lt;https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36&amp;gt;&lt;/p&gt;
&lt;p&gt;This code has existed essentially since the beginning, 
so it is reasonable to assume that all published versions `&amp;lt;= 2.2.2` are affected.&lt;/p&gt;
&lt;p&gt;## Mitigation&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;For web application…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: diesel&lt;/p&gt;
&lt;p&gt;The following presentation at this year&amp;#39;s DEF CON was brought to our attention on the Diesel Gitter Channel:&lt;/p&gt;
&lt;p&gt;&amp;gt; SQL Injection isn&amp;#39;t Dead: Smuggling Queries at the Protocol Level  
&amp;gt; &amp;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&amp;#39;t%20Dead%20Smuggling%20Queries%20at%20the%20Protocol%20Level.pdf&amp;gt;  
&amp;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.&lt;/p&gt;
&lt;p&gt;It appears Diesel _does_ perform truncating casts in a way that could be problematic, 
for example: &amp;lt;https://github.com/diesel-rs/diesel/blob/ae82c4a5a133db65612b7436356f549bfecda1c7/diesel/src/pg/connection/stmt/mod.rs#L36&amp;gt;&lt;/p&gt;
&lt;p&gt;This code has existed essentially since the beginning, 
so it is reasonable to assume that all published versions `&amp;lt;= 2.2.2` are affected.&lt;/p&gt;
&lt;p&gt;## Mitigation&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;For web application…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/ghsa-wq9x-qwcq-mmgf</guid>
    </item>
  </channel>
</rss>
