Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-86861— pgAdmin 4: File Manager save_file writes through a symbolic link planted after the containment check

Quick assessment

Affected
pgadmin.org pgAdmin 4
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

以下是该漏洞描述的中文翻译: pgAdmin 4 文件管理器(File Manager)的 端点,用于支持查询工具(Query Tool)和 ERD 中的保存操作。该端点通过 验证请求的路径,随后使用普通的 调用以写模式打开文件。此前,CVE-2026-7819 已通过使用 标志加固了独立的文件上传路径,使内核拒绝跟随最终路径组件上的符号链接;但 路径仍保留在未受保护的 调用上。若在执行权限检查时已存在的符号链接会被检查逻辑本身拒绝;剩余的暴露风险在于:在检查与写入之间的时间窗口内,最终路径组件处的符号链接被替换,

CVSS 5.9 · Medium

Possible ATT&CK Techniques 1 AI

T1078 · Valid Accounts
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-86861

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
pgAdmin 4: File Manager save_file writes through a symbolic link planted after the containment check
Source: CVE Program / CVE List V5
Vulnerability Description
pgAdmin 4's File Manager save_file endpoint, which backs saving from the Query Tool and ERD, validated the requested path with Filemanager.check_access_permission() and then opened the file for writing with a plain open() call. CVE-2026-7819 had previously hardened the separate file upload path by opening its target with O_NOFOLLOW, so that the kernel refuses to follow a symbolic link at the final path component, but save_file was left on an unprotected open(). A symbolic link already present when the check ran was rejected by the check itself; the remaining exposure was a link substituted at the final path component in the interval between the check and the write, at which point the write followed the link and landed outside the user's storage directory, creating or overwriting an arbitrary file as the operating-system account running pgAdmin. Exploitation requires the ability to create or replace a symbolic link inside the requesting user's storage directory. pgAdmin exposes no interface that creates symbolic links, so this requires filesystem access to the pgAdmin host or to a shared or network-mounted storage backend, together with winning the timing window. The reporter did not achieve a write against a released version, having attempted approximately 63,000 racing requests without success; the reported defect is the uncovered write path rather than a demonstrated sandbox escape. The fix routes save_file's write through the same O_NOFOLLOW-protected helper already used by the upload path, so both File Manager write sinks carry identical kernel-enforced protection, and reports a symbolic-link refusal explicitly instead of surfacing the underlying system error text. Note that files created by save_file are now given mode 0600, inheriting the behaviour introduced for uploads. The protection covers the final path component; substitution of an intermediate directory component is not addressed by this change. This issue affects pgAdmin 4: from the introduction of the containment check in the File Manager save path before 9.18.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
检查时间与使用时间(TOCTOU)的竞争条件
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
pgadmin.org pgAdmin 4 0 ~ 9.18 -

II. Public POCs for CVE-2026-86861

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-86861

登录查看更多情报信息。

Other References for CVE-2026-86861 (1)

Same Patch Batch · pgadmin.org · 2026-09-17 · 4 CVEs total

CVE-2026-86863 9.8 CRITICAL pgAdmin 4: Authentication bypass via a client-controlled identity header in Webserver auth
CVE-2026-86864 8.8 HIGH pgAdmin 4: Argument and connection-string injection via the database field in the Backup t
CVE-2026-86862 6.5 MEDIUM pgAdmin 4: Connection-string injection via the database field in the Restore and Maintenan

IV. Related Vulnerabilities

V. Comments for CVE-2026-86861

No comments yet


Leave a comment