CVE-2026-116243
HIGH(7.5)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 7.5 — Hoch
Erwähnungen (letzte 60 Tage)
EPSS-Score
0.3%
Exploit-Wahrscheinlichkeit (30 Tage)
CVSS Score
7.5
Technische Schwere
Beschreibung
pgAdmin 4 runs pg_dump, pg_restore, pg_dumpall and psql from the binary path a user sets in their preferences. In server mode the binary path was refused only when it lay under the per-user storage directory (STORAGE_DIR), not under a SHARED_STORAGE directory, which ordinary users can upload files to. A user could therefore upload an executable to shared storage, point their binary path at it, and have pgAdmin run it as the operating-system account running pgAdmin. On POSIX, files created through pgAdmin are not executable, so this is exploitable where any file with an executable name can run, such as Windows server mode. The fix checks the binary path against every SHARED_STORAGE directory as well, after expanding $DIR, collapsing ".." and resolving symbolic links, compares directories in a way a different spelling on a case-insensitive filesystem cannot bypass, refuses a path containing a NUL, and enforces the check wherever binary paths are resolved, including for the PSQL tool. This issue affects pgAdmin 4: before 9.19.
Erkennung & Indikatoren
Ausnutzung
In den geprüften Quellen nicht genannt
Behobene Versionen
- pgAdmin 4 9.19
Threat-Hunting-Queries
Sentinel/Defender KQL
DeviceProcessEvents
| where InitiatingProcessFileName == "pgAdmin4.exe"
| where FileName in ("pg_dump.exe", "pg_restore.exe", "pg_dumpall.exe", "psql.exe")
| where FolderPath contains "SHARED_STORAGE"Splunk SPL
sourcetype=WinEventLog:Security EventCode=4688 NewProcessName IN ("pg_dump.exe", "pg_restore.exe", "pg_dumpall.exe", "psql.exe") ParentProcessName="pgAdmin4.exe" CommandLine=*SHARED_STORAGE*Sigma
title: pgAdmin4 Utility Execution from Shared Storage
status: experimental
description: Detects pgAdmin4 executing database utilities from a SHARED_STORAGE path, which could indicate a malicious executable.
logsource:
category: process_creation
product: windows
detection:
selection:
ParentImage|endswith: '\pgAdmin4.exe'
Image|endswith:
- '\pg_dump.exe'
- '\pg_restore.exe'
- '\pg_dumpall.exe'
- '\psql.exe'
CommandLine|contains: 'SHARED_STORAGE'
condition: selection
fields:
- CommandLine
- ParentImage
- Image
tags:
- attack.execution
- cve.2026.116243Elastic ES|QL
from process where event.type == "start" and process.parent.name == "pgAdmin4.exe" and process.name in ("pg_dump.exe", "pg_restore.exe", "pg_dumpall.exe", "psql.exe") and process.args contains "SHARED_STORAGE"SecBoard-generated · behavioral · requires customization — Von SecBoard erzeugt und nicht in einer Zielumgebung validiert. Vor dem Einsatz an die eigene Protokollierung anpassen.
Betroffene Produkte
- cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:*:*:*