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

目标: 1000 元 · 已筹: 1325

100%

CVE-2026-12045— pgAdmin 4 AI助手读写权限绕过导致远程代码执行

CVSS 9.0 · Critical

影响版本矩阵 1

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

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

漏洞信息

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

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

Vulnerability Title
pgAdmin 4: AI Assistant read-only transaction bypass allows unauthorised writes and remote code execution
来源: 美国国家漏洞数据库 NVD
Vulnerability Description
Read-only transaction bypass in the pgAdmin 4 AI Assistant allows an attacker who can influence database content that the assistant reads to execute arbitrary SQL with the privileges of the pgAdmin user's database role. The AI Assistant's execute_sql_query tool runs LLM-generated SQL inside a BEGIN TRANSACTION READ ONLY wrapper to prevent data modification. The LLM-supplied query was forwarded to the database driver without restriction to a single statement or to read-only verbs, so a multi-statement payload beginning with COMMIT, END, ROLLBACK, or ABORT terminated the read-only transaction and ran subsequent statements in autocommit mode. The trailing ROLLBACK then had no effect. Delivery is via prompt injection: an attacker who can write content into any object the AI Assistant may inspect (a row, a column value, a comment) can cause the LLM to emit the multi-statement payload as a tool call. With ordinary write privileges on the pgAdmin user's role the attacker can perform unauthorised data modification. When the pgAdmin user's role is a PostgreSQL superuser or holds pg_execute_server_program, the chain extends to remote code execution on the database server host via COPY ... TO PROGRAM. Fix validates the LLM-supplied query up front: it must parse to exactly one non-empty / non-comment statement whose leading real token (after stripping whitespace, comments, and punctuation) is one of SELECT, WITH, EXPLAIN, SHOW, VALUES, or TABLE. Transaction-control verbs, DML, DDL, CALL, COPY, DO, SET/RESET, and everything else are rejected before any database work happens. PostgreSQL's READ ONLY mode continues to backstop data-modifying CTEs, EXPLAIN ANALYZE on writes, and volatile side effects. This issue affects pgAdmin 4: from 9.13 before 9.16.
来源: 美国国家漏洞数据库 NVD
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
来源: 美国国家漏洞数据库 NVD
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
来源: 美国国家漏洞数据库 NVD

受影响产品

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

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

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

未找到公开 POC。

登录以生成 AI POC

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

登录查看更多情报信息。

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

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

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

CVE-2026-120489.3 CRITICALpgAdmin 4 存储型XSS漏洞
CVE-2026-120469.0 CRITICALpgAdmin 4 SQL编辑器远程代码执行漏洞
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-12045

暂无评论


发表评论