Pgadmin 4 vulnerabilities, page 2

46 vulnerabilities

Known vulnerabilities in Pgadmin 4, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.

RoutineCVE-2026-7818pgadmin.org · pgadmin 4 +3 morepgAdmin 4: Unsafe deserialization (CWE-502) in file-backed session manager leads to remote code executionDeserialization of untrusted data (CWE-502) in pgAdmin 4 FileBackedSessionManager. The session manager performed unsafe deserialization of session-file contents (using Python's standard object-serialization module) before performing any HMAC integrity check. Any file dropped into the sessions directory was deserialized unconditionally. An authenticated user with write access to the sessions directory (whether by misconfiguration or in combination with another path-traversal flaw) could plant a crafted serialized payload to achieve operating-system level remote code execution under the pgAdmin process identity. Fix prepends a 64-byte hex SHA-256 HMAC over the session body, computed with SECRET_KEY, and verifies it via hmac.compare_digest before any deserialization. The check is raised (rather than asserted) on empty SECRET_KEY so it is not stripped under -O. This issue affects pgAdmin 4: before 9.15.CVSS7.8HighEPSS0.13%RoutineCVE-2026-7817pgadmin.org · pgadmin 4 +3 morepgAdmin 4: Local file inclusion and server-side request forgery in LLM API configuration endpointsLocal file inclusion (LFI) and server-side request forgery (SSRF) vulnerabilities in pgAdmin 4 LLM API configuration endpoints. User-supplied api_key_file and api_url preferences were passed to the LLM provider clients without validation. An authenticated user could read arbitrary server-side files by pointing api_key_file at any path readable by the pgAdmin process, or coerce pgAdmin into making requests to internal targets (e.g. cloud metadata services such as 169.254.169.254) by setting api_url, exploiting the chat path and model-list endpoints. Fix restricts api_key_file to the user's private storage (server mode) or home directory (desktop mode), enforces a printable-ASCII key shape and a 1024-byte read cap, and gates api_url against a configurable allow-list (config.ALLOWED_LLM_API_URLS) at every entry point. This issue affects pgAdmin 4: before 9.15.CVSS7.1HighEPSS0.22%RoutineCVE-2026-7816pgadmin.org · pgadmin 4 +3 morepgAdmin 4: OS command injection in Import/Export query export via psql metacommand breakoutOS command injection (CWE-78) vulnerability in pgAdmin 4 Import/Export query export. User-supplied input was interpolated directly into a psql \copy metacommand template without sanitization. An authenticated user could inject ") TO PROGRAM 'cmd'" to break out of the \copy (...) context and achieve arbitrary command execution on the pgAdmin server, or ") TO '/path'" for arbitrary file write. Additional fields (format, on_error, log_verbosity) were also raw-interpolated and exploitable. Fix adds a parens-balance parser modeled on psql's strtokx tokenizer, allow-lists format/on_error/log_verbosity, rejects null bytes in the query, and tightens type and gating checks. This issue affects pgAdmin 4: before 9.15.CVSS8.8HighEPSS1.44%RoutineCVE-2026-7815pgadmin.org · pgadmin 4 +3 morepgAdmin 4: SQL injection in Maintenance tool option values leading to remote code executionSQL injection vulnerability in pgAdmin 4 Maintenance Tool. Four user-supplied JSON fields (buffer_usage_limit, vacuum_parallel, vacuum_index_cleanup, reindex_tablespace) were concatenated directly into the rendered VACUUM/ANALYZE/REINDEX command and passed to psql --command. An authenticated user with the tools_maintenance permission could break out of the option syntax and execute arbitrary SQL on the connected PostgreSQL server. The injected SQL could in turn invoke COPY ... TO PROGRAM to escalate to operating-system command execution on the database host. Fix introduces server-side allow-listing of all four fields and switches reindex_tablespace from manual quoting to the qtIdent filter. This issue affects pgAdmin 4: before 9.15.CVSS8.8HighEPSS0.46%RoutineCVE-2026-7814pgadmin.org · pgadmin 4 +3 morepgAdmin 4: Stored XSS via crafted PostgreSQL object names in Browser Tree and Explain VisualizerStored cross-site scripting (XSS) vulnerability in pgAdmin 4 Browser Tree and Explain Visualizer modules. User-controlled PostgreSQL object names (database, schema, table, column, etc.) were assigned to DOM elements via innerHTML, allowing crafted object names containing HTML markup to execute attacker-supplied JavaScript in the browser of any pgAdmin user who navigated to or executed EXPLAIN over the malicious object. Fix replaces innerHTML with textContent. This issue affects pgAdmin 4: before 9.15.CVSS4.8MediumEPSS0.16%PrioritiseCVE-2026-7813pgadmin.org · pgadmin 4 +3 morepgAdmin 4: Cross-user data access and shared-server privilege escalation in server modeAuthorization vulnerability in pgAdmin 4 server mode affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules. Multiple endpoints fetched user-owned objects without filtering by the requesting user's identity. An authenticated user could access another user's private servers, server groups, background processes, and debugger function arguments by guessing object IDs. Additionally, the Shared Servers feature contained multiple issues including credential leakage (passexec_cmd, passfile, SSL keys), privilege escalation via writable passexec_cmd (a shell command executed when establishing the connection) allowing arbitrary command execution in the owner's process context, and owner-data corruption via SQLAlchemy session mutations. Several owner-only fields (passexec_cmd, passexec_expiration, db_res, db_res_type) were writable by non-owners through the API, and additional fields (kerberos_conn, tags, post_connection_sql) lacked per-user persistence so non-owner edits mutated the owner's record. Fix centralises access control via a new server_access module, scopes all user-owned models with a UserScopedMixin, returns HTTP 410 from connection_manager when access is denied in server mode, suppresses owner-only fields for non-owners across the merge / API response / ServerManager paths, and adds an explicit owner-only write guard. The remediation landed in two pull requests; both are referenced. This issue affects pgAdmin 4: before 9.15.CVSS9.9CriticalEPSS0.46%RoutineCVE-2026-1707pgadmin.org · pgadmin 4 +2 moreRestore restriction bypass via key disclosure vulnerability (pgAdmin 4)pgAdmin versions 9.11 are affected by a Restore restriction bypass via key disclosure vulnerability that occurs when running in server mode and performing restores from PLAIN-format dump files. An attacker with access to the pgAdmin web interface can observe an active restore operation, extract the `\restrict` key in real time, and race the restore process by overwriting the restore script with a payload that re-enables meta-commands using `\unrestrict <key>`. This results in reliable command execution on the pgAdmin host during the restore operation.CVSS7.4HighEPSS0.44%PrioritiseCVE-2025-13780pgadmin.org · pgadmin 4 +2 moreRemote Code Execution vulnerability when restoring PLAIN-format SQL dumps in server mode (pgAdmin 4)pgAdmin versions up to 9.10 are affected by a Remote Code Execution (RCE) vulnerability that occurs when running in server mode and performing restores from PLAIN-format dump files. This issue allows attackers to inject and execute arbitrary commands on the server hosting pgAdmin, posing a critical risk to the integrity and security of the database management system and underlying data.CVSS9.1CriticalEPSS0.94%PrioritiseCVE-2025-12765pgadmin.org · pgadmin 4 +2 morepgAdmin 4: LDAP authentication flow vulnerable to TLS certificate verification bypass.pgAdmin <= 9.9  is affected by a vulnerability in the LDAP authentication mechanism allows bypassing TLS certificate verification.CVSS7.5HighEPSS0.23%PrioritiseCVE-2025-12764pgadmin.org · pgadmin 4 +2 morepgAdmin 4: LDAP injection vulnerability in LDAP authentication flow.pgAdmin <= 9.9  is affected by an LDAP injection vulnerability in the LDAP authentication flow that allows an attacker to inject special LDAP characters in the username, causing the DC/LDAP server and the client to process an unusual amount of data DOS.CVSS7.5HighEPSS0.48%RoutineCVE-2025-12763pgadmin.org · pgadmin 4 +2 moreCommand injection vulnerability allowing arbitrary command execution on WindowspgAdmin 4 versions up to 9.9 are affected by a command injection vulnerability on Windows systems. This issue is caused by the use of shell=True during backup and restore operations, enabling attackers to execute arbitrary system commands by providing specially crafted file path input.CVSS8.8HighEPSS0.91%PrioritiseCVE-2025-12762pgadmin.org · pgadmin 4 +2 moreRemote Code Execution vulnerability when restoring PLAIN-format SQL dumps in server mode (pgAdmin 4)pgAdmin versions up to 9.9 are affected by a Remote Code Execution (RCE) vulnerability that occurs when running in server mode and performing restores from PLAIN-format dump files. This issue allows attackers to inject and execute arbitrary commands on the server hosting pgAdmin, posing a critical risk to the integrity and security of the database management system and underlying data.CVSS9.8CriticalEPSS12.71%RoutineCVE-2025-9636pgadmin.org · pgadmin 4 +16 moreCross-Origin Opener Policy Vulnerability in pgAdmin 4pgAdmin <= 9.7 is affected by a Cross-Origin Opener Policy (COOP) vulnerability. This vulnerability allows an attacker to manipulate the OAuth flow, potentially leading to unauthorised account access, account takeover, data breaches, and privilege escalation.CVSS7.9HighEPSS0.23%PrioritiseCVE-2025-2946pgadmin.org · pgadmin 4 +2 moreCross-Site Vulnerability(XSS) due to arbitrary HTML/JavaScript gets executed while query result rendering in Query Tool and View/Edit Data Tool of pgAdmin 4pgAdmin <= 9.1 is affected by a security vulnerability with Cross-Site Scripting(XSS). If attackers execute any arbitrary HTML/JavaScript in a user's browser through query result rendering, then HTML/JavaScript runs on the browser.CVSS9.1CriticalEPSS0.33%PrioritiseCVE-2025-2945pgadmin.org · pgadmin 4 +2 morepgAdmin 4: Remote Code Execution in Query Tool and Cloud DeploymentRemote Code Execution security vulnerability in pgAdmin 4 (Query Tool and Cloud Deployment modules). The vulnerability is associated with the 2 POST endpoints; /sqleditor/query_tool/download, where the query_commited parameter and /cloud/deploy endpoint, where the high_availability parameter is unsafely passed to the Python eval() function, allowing arbitrary code execution. This issue affects pgAdmin 4: before 9.2.CVSS9.9CriticalEPSS56.30%PrioritiseCVE-2024-9014pgadmin.org · pgadmin 4 +2 moreOAuth2 client id and secret exposed through the web browser in pgAdmin 4pgAdmin versions 8.11 and earlier are vulnerable to a security flaw in OAuth2 authentication. This vulnerability allows an attacker to potentially obtain the client ID and secret, leading to unauthorized access to user data.CVSS9.9CriticalEPSS9.69%RoutineCVE-2024-6238pgadmin.org · pgadmin 4 +1 morepgAdmin 4 Installation Directory permission issuepgAdmin <= 8.8 has an installation Directory permission issue. Because of this issue, attackers can gain unauthorised access to the installation directory on the Debian or RHEL 8 platforms.CVSS7.4HighEPSS0.25%PrioritiseCVE-2024-4216pgadmin.org · pgadmin 4 +6 moreXSS vulnerability in /settings/store API response json payload in pgAdmin 4pgAdmin <= 8.5 is affected by XSS vulnerability in /settings/store API response json payload. This vulnerability allows attackers to execute malicious script at the client end.CVSS7.4HighEPSS0.46%RoutineCVE-2024-4215pgadmin.org · pgadmin 4 +3 moreThe Multi Factor Authentication bypass vulnerability in pgAdmin 4pgAdmin <= 8.5 is affected by a multi-factor authentication bypass vulnerability. This vulnerability allows an attacker with knowledge of a legitimate account’s username and password may authenticate to the application and perform sensitive actions within the application, such as managing files and executing SQL queries, regardless of the account’s MFA enrollment status.CVSS8.8HighEPSS0.63%PrioritiseCVE-2024-3116pgadmin.org · pgadmin 4 +3 moreRemote Code Execution Vulnerability through the validate binary path API in pgAdmin 4pgAdmin <= 8.4 is affected by a Remote Code Execution (RCE) vulnerability through the validate binary path API. This vulnerability allows attackers to execute arbitrary code on the server hosting PGAdmin, posing a severe risk to the database management system's integrity and the security of the underlying data.CVSS9.8CriticalEPSS65.81%