目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-66838— elixir-ecto Postgrex SQL注入漏洞

一分钟漏洞结论

影响对象
elixir-ecto postgrex
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

elixir-ecto Postgrex是elixir-ecto组织的一款基于Elixir的数据库驱动连接工具。 elixir-ecto Postgrex 0.19.3版本至0.22.4之前版本存在SQL注入漏洞,该漏洞源于对SQL命令中特殊元素的中和不当,攻击者可通过Postgrex.stream/4的:comment选项注入SQL,关闭注释分隔符并扩展流式语句,以连接的角色执行任意子句。

CVSS 5.9 · Medium EPSS 0.40% · P33

影响版本矩阵 2

厂商产品 版本范围状态
elixir-ecto postgrex 0.19.3< 0.22.4 affected
4971a2722fa72f8e1b54a2c403cad4c43916e36d< * affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-66838 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
SQL injection via the :comment option in Postgrex.stream/4
来源: CVE Program / CVE List V5
Vulnerability Description
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in elixir-ecto postgrex allows SQL Injection via the :comment option of Postgrex.stream/4. An attacker who can influence that value can close the comment delimiter with */ and extend the streamed statement with their own clauses, which execute under the connection's role. Ecto exposes the same option through Ecto.Repo.stream/2. Postgrex appends the comment by concatenating it into the statement text sent in the Parse message, without escaping or rejecting */. The option is validated by comment_not_present!/1 at every other execution point; stream/4 never calls it. Because Parse accepts a single command, the injection is confined to the streamed statement and further statements cannot be chained. This issue affects postgrex: from 0.19.3 before 0.22.4.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
来源: CVE Program / CVE List V5
Vulnerability Title
elixir-ecto Postgrex SQL注入漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
elixir-ecto Postgrex是elixir-ecto组织的一款基于Elixir的数据库驱动连接工具。 elixir-ecto Postgrex 0.19.3版本至0.22.4之前版本存在SQL注入漏洞,该漏洞源于对SQL命令中特殊元素的中和不当,攻击者可通过Postgrex.stream/4的:comment选项注入SQL,关闭注释分隔符并扩展流式语句,以连接的角色执行任意子句。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
elixir-ecto postgrex 0.19.3 ~ 0.22.4 cpe:2.3:a:elixir-ecto:postgrex:*:*:*:*:*:*:*:*
elixir-ecto postgrex 4971a2722fa72f8e1b54a2c403cad4c43916e36d ~ * cpe:2.3:a:elixir-ecto:postgrex:*:*:*:*:*:*:*:*

二、漏洞 CVE-2026-66838 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-66838 的情报信息

请登录查看更多情报信息。

CVE-2026-66838 补丁与修复 (2)

CVE-2026-66838 厂商安全公告 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-66838

暂无评论


发表评论