CVE-2026-86861
Last modified
CVE-2026-86861 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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(). EPSS estimates a 0.44% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Pgadmin | Pgadmin 4 | < 9.18 |
References
- https://github.com/pgadmin-org/pgadmin4/issues/10385Exploit, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-86861?
How severe is CVE-2026-86861?
How do I fix CVE-2026-86861?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-8684The MotoPress Hotel Booking plugin for WordPress is vulnerab…5.3
- CVE-2026-86840The `vtoken-minting` and `slpx` pallets in Bifrost contain a…9.1
- CVE-2026-86842The Real3D Flipbook WordPress plugin before 5.4 does not pe…
- CVE-2026-8685The Infility Global plugin for WordPress is vulnerable to SQ…6.5
- CVE-2026-86853A malicious webpage could repeatedly trigger external URL sc…4.3
- CVE-2026-8686Missing bounds validation in the MQTT v5.0 property parser i…9.1
- CVE-2026-86862pgAdmin 4's Restore and Maintenance tools passed the client-…6.5
- CVE-2026-86863pgAdmin 4's Webserver authentication source is intended to a…9.8
- CVE-2026-86864pgAdmin 4's Backup tool appended the client-supplied 'databa…8.8
- CVE-2026-86865Tanium addressed a SQL injection vulnerability in Asset.7.2
- CVE-2026-86869An out-of-bounds write issue was addressed with improved bou…6.5
- CVE-2026-86870A heap buffer overflow was addressed with improved bounds ch…6.5
Are you affected by CVE-2026-86861?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
