CVE Professor
›
Back
CVE-2026-86861

CVE-2026-86861 — Pgadmin Pgadmin 4 (tüm Sürümler) — CWE-59 · CWE-367

MEDIUM CVSS 5.9 NVD

CVE-2026-86861 is a MEDIUM severity security vulnerability (CWE-59, CWE-367) (CVSS 5.9/10) affecting Pgadmin Pgadmin 4 (tüm Sürümler). Technical vector analysis shows that an attacker can exploit this flaw remotely over the network with low-privileged access (PR:L) with zero user interaction (UI:N), resulting in complete compromise of system confidentiality and integrity (C:H/I:H).

📄 Official NVD / MITRE Original Record Text

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.

Published 17.09.2026
ISO Date 2026-09-17
CVSS Version v3.1
Source NVD
CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity High I:H
Availability Low A:L
AI Security Analysis & Remediation
🤖 Generating Deep AI Security Analysis…
Analyzing CVSS vector & CWE weakness structure…

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-86861
CVSS 5.9/10 · MEDIUM · 17.09.2026
CWE: CWE-59, CWE-367
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Unrestricted File Upload
Summary: 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 fi…
Affected: pgadmin:pgadmin_4

⚡ ATTACK CHAIN
1. Find upload endpoint.
2. Create webshell with PHP system() call.
3. Bypass MIME: Content-Type: image/jpeg
4. Extension bypass: .php.jpg, .phtml, .php5, .shtml
5. Access uploaded shell: /uploads/shell.php?cmd=whoami

🔧 Tools: Burp Suite, weevely, msfvenom (webshell generation)
🗺️ MITRE ATT&CK: T1105 (Ingress Tool Transfer), T1059

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; data can be modified or deleted.

🛡️ REMEDIATION
→ Apply vendor security update for pgadmin:pgadmin_4.
→ Store uploads outside web root, validate MIME server-side.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📋 Routine update cycle (30 days)

────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="pgadmin pgadmin_4"
CVSS Score
5.9 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-59 CWE-367
Affected Products (1)
pgadmin:pgadmin_4 (tüm sürümler)
References & Advisories (1)
github.com patch exploit advisory
Related CVEs
9.9
CVE-2026-130771
Incus before 7.6.0 fails to reject special files, hard links, or symlinks in backup or image metadata, allowin
8.6
CVE-2026-116637
A site administrator could modify files on the appliance host with root privileges and disclose private reposi
8.4
CVE-2026-55169
Open OnDemand is an open-source high-performance computing portal. Prior to 4.1.6 and 4.2.3, the Open OnDemand
7.3
CVE-2026-111520
Dell Alienware Command Center (AWCC), versions prior to 6.14.105.0, contain a Time-of-check Time-of-use (TOCTO
6.4
CVE-2026-106096
A flaw was found in CRI-O. When the optional Linux LinkLogs feature is enabled, the host pod log directory is
6.3
CVE-2026-87850
nVision sends user's token via query parameters of GET requests. An attacker who obtains valid token can gain