<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cpe:2.3:a:elixir-Ecto:postgrex:*:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3aelixir-ectopostgrex/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 19 Nov 2026 09:42:24 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3aelixir-ectopostgrex/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>elixir-ecto postgrex: SQL injection in Postgrex.stream (CVE-2026-66838)</title><link>https://feed.craftedsignal.io/briefs/2026-11-cve-2026-66838/</link><pubDate>Thu, 19 Nov 2026 09:42:24 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-11-cve-2026-66838/</guid><description>The postgrex library contains an SQL injection vulnerability in the :comment option of Postgrex.stream/4 and Ecto.Repo.stream/2, allowing attackers to inject arbitrary SQL clauses into the database statement.</description><content:encoded><![CDATA[<h2 id="overview">Overview</h2>
<p>An SQL injection vulnerability exists in the postgrex library due to the improper neutralization of special characters within the :comment option of the Postgrex.stream/4 function. The vulnerability occurs because the library concatenates the comment into the database statement without adequate escaping or validation. Ecto.Repo.stream/2 is also impacted as it exposes this same option. The vulnerability is restricted to the single streamed statement and does not support command chaining. This issue affects postgrex versions from 0.19.3 before 0.22.4.</p>
<h2 id="impact">Impact</h2>
<p>An attacker who can influence the :comment value can close the comment delimiter with */ and inject arbitrary SQL clauses. These injected clauses will be executed under the database connection's role.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Update the postgrex dependency to version 0.22.4 or later.</li>
<li>If patching is not immediately possible, implement a workaround to reject any :comment value containing '*/' or a null byte before passing the value to Postgrex.stream/4 or Ecto.Repo.stream/2. Alternatively, ensure that comments are constructed only from trusted, sanitized sources.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item></channel></rss>