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

目标: 1000 元 · 已筹: 1325

100%

CVE-2026-12046— pgAdmin 4 SQL编辑器远程代码执行漏洞

CVSS 9.0 · Critical

影响版本矩阵 1

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

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

漏洞信息

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

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

Vulnerability Title
pgAdmin 4: Unauthenticated pickle deserialization in SQL Editor close / update_connection routes enables remote code execution
来源: 美国国家漏洞数据库 NVD
Vulnerability Description
Two state-mutating endpoints in pgAdmin 4's SQL Editor blueprint -- DELETE /sqleditor/close/<trans_id> and POST /sqleditor/initialize/sqleditor/update_connection/<sgid>/<sid>/<did> -- were the only routes in the module missing the @pga_login_required decorator. Both reach a pickle.loads sink on session['gridData'][<trans_id>]['command_obj']: the close endpoint via close_sqleditor_session(), and update_sqleditor_connection via check_transaction_status(). In server mode these endpoints were reachable without any authenticated pgAdmin session. The defect is a missing-authentication-on-critical-function (CWE-306) wrapper around a deserialization-of-untrusted-data sink (CWE-502). Exploiting it for remote code execution requires the attacker to also forge a server-side session file whose gridData entry contains a malicious pickle payload, which in turn requires both (a) knowledge of pgAdmin's Flask SECRET_KEY (no chain to leak it is described here -- the attacker must already possess it) and (b) write access to pgAdmin's sessions/ directory on the host. Neither precondition is granted by this defect on its own. When those preconditions are met from another channel (misconfigured deployment, prior compromise, leaked configuration), the missing auth gate is the final hop that turns an existing partial compromise into unauthenticated code execution in the pgAdmin process -- and, by extension, on the host under whatever account runs pgAdmin. Fix is a one-line @pga_login_required decorator on each of the two endpoints, matching the convention used by every other route in the module. The is_authenticated / MFA chain now runs before the trans_id is dereferenced, so an unauthenticated request is rejected before reaching the deserialization path. The defect is server-mode only. In DESKTOP mode pgAdmin's before_request hook re-authenticates DESKTOP_USER on every request, so no endpoint can be exercised in an unauthenticated state and no auth decorator (or its absence) is meaningful. The accompanying regression test mirrors the attacker's path -- harvests an X-pgA-CSRFToken from GET /login and replays it against both endpoints -- and self-skips outside server mode for that reason; it is wired into the existing server-mode CI workflow alongside the data-isolation tests. This issue affects pgAdmin 4: from 6.9 before 9.16.
来源: 美国国家漏洞数据库 NVD
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
来源: 美国国家漏洞数据库 NVD
Vulnerability Type
关键功能的认证机制缺失
来源: 美国国家漏洞数据库 NVD

受影响产品

厂商产品影响版本CPE订阅
pgadmin.orgpgAdmin 4 6.9 ~ 9.16 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

登录查看更多情报信息。

CVE-2026-12046 补丁与修复 (1)

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

同批安全公告 · pgadmin.org · 2026-06-18 · 共 7 条

CVE-2026-120489.3 CRITICALpgAdmin 4 存储型XSS漏洞
CVE-2026-120459.0 CRITICALpgAdmin 4 AI助手读写权限绕过导致远程代码执行
CVE-2026-120448.8 HIGHpgAdmin 4 注释描述注入漏洞
CVE-2026-120494.3 MEDIUMpgAdmin 4 多因素认证流程中未验证的'next'参数导致开放重定向漏洞
CVE-2026-120504.3 MEDIUMpgAdmin 4 命名还原点端点SQL注入漏洞
CVE-2026-120473.5 LOWpgAdmin 4 云端认证/部署端点HTML注入漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2026-12046

暂无评论


发表评论