{"description":"Trending threats, MITRE ATT\u0026CK coverage, and detection metadata. Fed continuously.","favicon":"https://feed.craftedsignal.io/favicon-32x32.png","feed_url":"https://feed.craftedsignal.io/cpes/cpe2.3aelixir-ectopostgrex/feed.json","home_page_url":"https://feed.craftedsignal.io/","icon":"https://feed.craftedsignal.io/apple-touch-icon.png","items":[{"_cs_actors":[],"_cs_cpes":["cpe:2.3:a:elixir-ecto:postgrex:*:*:*:*:*:*:*:*"],"_cs_cves":[{"cvss":8.2,"id":"CVE-2026-66838"}],"_cs_exploited":false,"_cs_has_poc":false,"_cs_poc_references":[],"_cs_products":["postgrex"],"_cs_severities":["high"],"_cs_tags":[],"_cs_type":"advisory","_cs_vendors":["elixir-ecto"],"content_html":"\u003ch2 id=\"overview\"\u003eOverview\u003c/h2\u003e\n\u003cp\u003eAn 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.\u003c/p\u003e\n\u003ch2 id=\"impact\"\u003eImpact\u003c/h2\u003e\n\u003cp\u003eAn 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.\u003c/p\u003e\n\u003ch2 id=\"recommendation\"\u003eRecommendation\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003eUpdate the postgrex dependency to version 0.22.4 or later.\u003c/li\u003e\n\u003cli\u003eIf 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.\u003c/li\u003e\n\u003c/ul\u003e\n","date_modified":"2026-11-19T09:42:24Z","date_published":"2026-11-19T09:42:24Z","id":"https://feed.craftedsignal.io/briefs/2026-11-cve-2026-66838/","summary":"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.","title":"elixir-ecto postgrex: SQL injection in Postgrex.stream (CVE-2026-66838)","url":"https://feed.craftedsignal.io/briefs/2026-11-cve-2026-66838/"}],"language":"en","title":"CraftedSignal Threat Feed - Cpe:2.3:a:elixir-Ecto:postgrex:*:*:*:*:*:*:*:*","version":"https://jsonfeed.org/version/1.1"}