Upstream information
Description
Two state-mutating endpoints in pgAdmin 4's SQL Editor blueprint -- DELETE /sqleditor/close/<trans_id> and POST /sqleditor/initialize/sqleditor/update_connection/<sgid>/<sid>/<did> -- were the only routes in the module missing the @pga_login_required decorator. Both reach a pickle.loads sink on session['gridData'][<trans_id>]['command_obj']: the close endpoint via close_sqleditor_session(), and update_sqleditor_connection via check_transaction_status(). In server mode these endpoints were reachable without any authenticated pgAdmin session.The defect is a missing-authentication-on-critical-function (CWE-306) wrapper around a deserialization-of-untrusted-data sink (CWE-502). Exploiting it for remote code execution requires the attacker to also forge a server-side session file whose gridData entry contains a malicious pickle payload, which in turn requires both (a) knowledge of pgAdmin's Flask SECRET_KEY (no chain to leak it is described here -- the attacker must already possess it) and (b) write access to pgAdmin's sessions/ directory on the host. Neither precondition is granted by this defect on its own. When those preconditions are met from another channel (misconfigured deployment, prior compromise, leaked configuration), the missing auth gate is the final hop that turns an existing partial compromise into unauthenticated code execution in the pgAdmin process -- and, by extension, on the host under whatever account runs pgAdmin.
Fix is a one-line @pga_login_required decorator on each of the two endpoints, matching the convention used by every other route in the module. The is_authenticated / MFA chain now runs before the trans_id is dereferenced, so an unauthenticated request is rejected before reaching the deserialization path.
The defect is server-mode only. In DESKTOP mode pgAdmin's before_request hook re-authenticates DESKTOP_USER on every request, so no endpoint can be exercised in an unauthenticated state and no auth decorator (or its absence) is meaningful. The accompanying regression test mirrors the attacker's path -- harvests an X-pgA-CSRFToken from GET /login and replays it against both endpoints -- and self-skips outside server mode for that reason; it is wired into the existing server-mode CI workflow alongside the data-isolation tests.
This issue affects pgAdmin 4: from 6.9 before 9.16.
Other Security Trackers
SUSE information
Overall state of this security issue: Resolved
This issue is currently rated as having critical severity.
| CVSS detail | CNA (PostgreSQL) | SUSE |
|---|---|---|
| Base Score | 9 | 9 |
| Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| Attack Vector | Network | Network |
| Attack Complexity | High | High |
| Privileges Required | None | None |
| User Interaction | None | None |
| Scope | Changed | Changed |
| Confidentiality Impact | High | High |
| Integrity Impact | High | High |
| Availability Impact | High | High |
| CVSSv3 Version | 3.1 | 3.1 |
| CVSS detail | CNA (PostgreSQL) | SUSE |
|---|---|---|
| Base Score | 9.5 | 9.5 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| Attack Vector | Network | Network |
| Attack Complexity | Low | High |
| Attack Requirements | Present | None |
| Privileges Required | None | None |
| User Interaction | None | None |
| Vulnerable System Confidentiality Impact | High | High |
| Vulnerable System Integrity Impact | High | High |
| Vulnerable System Availability Impact | High | High |
| Subsequent System Confidentiality Impact | High | High |
| Subsequent System Integrity Impact | High | High |
| Subsequent System Availability Impact | High | High |
| CVSSv4 Version | 4.0 | 4.0 |
Status of this issue by product and package
Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.
| Product(s) | Source package | State |
|---|---|---|
| Products under general support and receiving all security fixes. | ||
| SUSE Linux Enterprise Desktop 15 SP7 | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Module for Python 3 15 SP7 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP7 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | pgadmin4 | Not affected |
| Products under Long Term Service Pack support and receiving important and critical security fixes. | ||
| SUSE Linux Enterprise High Performance Computing 15 SP4 | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise Module for Python 3 15 SP6 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP4 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP5 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP4 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP5 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP6 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | pgadmin4 | Not affected |
| SUSE Manager Proxy 4.3 | pgadmin4 | Not affected |
| SUSE Manager Proxy LTS 4.3 | pgadmin4 | Not affected |
| SUSE Manager Retail Branch Server 4.3 | pgadmin4 | Not affected |
| SUSE Manager Retail Branch Server LTS 4.3 | pgadmin4 | Not affected |
| SUSE Manager Server 4.3 | pgadmin4 | Not affected |
| SUSE Manager Server LTS 4.3 | pgadmin4 | Not affected |
| Products past their end of life and not receiving proactive updates anymore. | ||
| SUSE CaaS Platform 4.0 | pgadmin4 | Not affected |
| SUSE Enterprise Storage 6 | pgadmin4 | Not affected |
| SUSE Enterprise Storage 7 | pgadmin4 | Not affected |
| SUSE Enterprise Storage 7.1 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Desktop 15 SP6 | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | pgadmin4 | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP1 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP2 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP3 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Real Time 15 SP2 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Real Time 15 SP3 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Real Time 15 SP4 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP1 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP1-BCL | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP1-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP2 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP3 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | pgadmin4 | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | pgadmin4 | Not affected |
| SUSE Manager Proxy 4.0 | pgadmin4 | Not affected |
| SUSE Manager Proxy 4.1 | pgadmin4 | Not affected |
| SUSE Manager Proxy 4.2 | pgadmin4 | Not affected |
| SUSE Manager Retail Branch Server 4.0 | pgadmin4 | Not affected |
| SUSE Manager Retail Branch Server 4.1 | pgadmin4 | Not affected |
| SUSE Manager Retail Branch Server 4.2 | pgadmin4 | Not affected |
| SUSE Manager Server 4.0 | pgadmin4 | Not affected |
| SUSE Manager Server 4.1 | pgadmin4 | Not affected |
| SUSE Manager Server 4.2 | pgadmin4 | Not affected |
| openSUSE Leap 15.3 | pgadmin4 | Not affected |
| openSUSE Leap 15.4 | pgadmin4 | Not affected |
| openSUSE Leap 15.5 | pgadmin4 | Not affected |
SUSE Timeline for this CVE
CVE page created: Fri Jun 19 04:01:22 2026CVE page last modified: Fri Jun 19 13:28:45 2026