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

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-17346— pgAdmin 4 索引统计及发布订阅视图中未转义对象名导致的SQL注入漏洞

CVSS 8.8 · High

影响版本矩阵 2

厂商产品版本范围状态
pgadmin.orgpgAdmin 41.0< 9.17affected
5.0< 9.17affected
获取后续新漏洞提醒登录后订阅

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

漏洞信息

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

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

Vulnerability Title
pgAdmin 4: SQL injection via unescaped object names in index Statistics and publication/subscription dependency views (incomplete fix for CVE-2026-12044)
来源: CVE Program / CVE List V5
Vulnerability Description
The fix for CVE-2026-12044 in pgAdmin 4 9.16 hardened qtLiteral and switched sixteen COMMENT ON / pgstattuple / pgstatindex templates to it, but missed several sinks that had been placed in test_sql_string_literal_lint.py's ALLOWLIST on the incorrect assumption that schema, table, publication, and subscription names sourced from pg_catalog via the browser tree could never contain an apostrophe. PostgreSQL permits arbitrary characters in quoted identifiers, so a low-privileged user able to CREATE TABLE, CREATE PUBLICATION, or CREATE SUBSCRIPTION can plant an apostrophe'd object name that breaks out of the unescaped '{{ name }}' template interpolation the moment any user (including a higher-privileged one) opens that object's Statistics or Dependencies tab, allowing arbitrary SQL statement injection in the viewing user's database session. Affected sinks: the Index Statistics query for all-indexes listing (coll_stats.sql, both the 16_plus and default PostgreSQL-version template variants -- distinct from the single-index stats.sql path already fixed in CVE-2026-12044), and the publication and subscription dependencies.sql / get_position.sql templates (both the pg and ppas/EPAS dialect variants for publications). Fix switches all of these templates to qtLiteral(conn) for name interpolation, and updates publications/__init__.py and subscriptions/__init__.py to pass conn=self.conn into the dependencies.sql render_template call so the qtLiteral filter has a connection to quote against. The corresponding ALLOWLIST entries in test_sql_string_literal_lint.py are removed now that these sinks are properly escaped rather than merely assumed safe. A behavioral regression test renders each fixed template with a stacked-statement apostrophe payload and asserts both that the object name appears exactly as qtLiteral-escaped and that the rendered SQL parses as exactly one statement, verifying the assertion genuinely fails against the pre-patch raw-interpolation form. This issue affects pgAdmin 4: the Index Statistics sink from 1.0, and the Publications/Subscriptions sinks from 5.0, both before 9.17.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
来源: CVE Program / CVE List V5

受影响产品

厂商产品影响版本CPE订阅
pgadmin.orgpgAdmin 4 1.0 ~ 9.17 -
pgadmin.orgpgAdmin 4 5.0 ~ 9.17 -

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

#POC 描述源链接神龙链接
AI 生成 POC高级
Qwen3.6-35B-A3B · 5990 chars
Pro+ 专属包含:
漏洞复现靶场录像(真实沙箱构建 + 触发,独家)
漏洞原理深度分析
触发条件与影响面
完整可执行 POC 代码
利用链与缓解建议
POC 打包下载
每月 100+ 条 AI 生成额度

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

登录查看更多情报信息。

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

CVE-2026-17346 厂商安全公告 (1)

同批安全公告 · pgadmin.org · 2026-07-31 · 共 7 条

CVE-2026-175669.9 CRITICALpgAdmin 4 数据导入/导出漏洞远程代码执行
CVE-2026-173499.6 CRITICALpgAdmin 4 多用户数据库凭证泄露漏洞
CVE-2026-173519.0 CRITICALpgAdmin 4 AI助手事务绕过漏洞(CVE-2026-12045修复不完整)
CVE-2026-173477.5 HIGHpgAdmin 4 通过不可信用户名替换的 OS 命令注入漏洞
CVE-2026-173486.5 MEDIUMpgAdmin 4 SERVER模式认证缺失致未授权访问
CVE-2026-173505.4 MEDIUMpgAdmin 4 后端路由与Socket.IO处理程序权限绕过漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2026-17346

暂无评论


发表评论