cbcvebase.

Pgadmin 4 vulnerabilities

46 known vulnerabilities affecting pgadmin/pgadmin_4.

Total CVEs
46
CISA KEV
0
Public exploits
5
Exploited in wild
1
Severity breakdown
CRITICAL9HIGH19MEDIUM18

Vulnerabilities

Page 1 of 3
CVE-2024-9014P2MEDIUMCVSS 6.5ExploitedPoCfixed in 8.122024-09-23
CVE-2024-9014 [MEDIUM] CWE-522 CVE-2024-9014: pgAdmin versions 8.11 and earlier are vulnerable to a security flaw in OAuth2 authentication. This v pgAdmin 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.
nvd
CVE-2024-2044P1CRITICALCVSS 9.9PoCfixed in 8.42024-03-07
CVE-2024-2044 [CRITICAL] CWE-31 CVE-2024-2044: pgAdmin <= 8.3 is affected by a path-traversal vulnerability while deserializing users’ sessions in pgAdmin <= 8.3 is affected by a path-traversal vulnerability while deserializing users’ sessions in the session handling code. If the server is running on Windows, an unauthenticated attacker can load and deserialize remote pickle objects and gain code execution. If the server is running on POSIX/Linux, an authenticated attacker can upload pickle obje
nvd
CVE-2024-3116P1CRITICALCVSS 9.8PoC≤ 8.42024-04-04
CVE-2024-3116 [CRITICAL] CWE-77 CVE-2024-3116: pgAdmin <= 8.4 is affected by a Remote Code Execution (RCE) vulnerability through the validate bina pgAdmin <= 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.
nvd
CVE-2022-4223P2HIGHCVSS 8.8PoCfixed in 6.172022-12-13
CVE-2022-4223 [HIGH] CWE-94 CVE-2022-4223: The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user sele The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. The utility is executed by the server to determine what PostgreSQL version it is from. Versions of pgAdmin prior to 6.17 failed to properly secure this API, which could allow an unauthent
nvd
CVE-2025-2945P2HIGHCVSS 8.8PoCfixed in 9.22025-04-03
CVE-2025-2945 [HIGH] CWE-94 CVE-2025-2945: Remote Code Execution security vulnerability in pgAdmin 4 (Query Tool and Cloud Deployment modules) Remote 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 arbi
nvd
CVE-2025-12762P2CRITICALCVSS 9.8fixed in 9.102025-11-13
CVE-2025-12762 [CRITICAL] CWE-94 CVE-2025-12762: pgAdmin versions up to 9.9 are affected by a Remote Code Execution (RCE) vulnerability that occurs w 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
nvd
CVE-2026-7813P2CRITICALCVSS 9.9fixed in 9.152026-05-11
CVE-2026-7813 [CRITICAL] CWE-284 CVE-2026-7813: Authorization vulnerability in pgAdmin 4 server mode affecting Server Groups, Servers, Shared Server Authorization 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,
nvd
CVE-2026-12046P2CRITICALCVSS 9.0≥ 6.9, < 9.162026-06-19
CVE-2026-12046 [CRITICAL] CWE-306 CVE-2026-12046: Two state-mutating endpoints in pgAdmin 4's SQL Editor blueprint -- DELETE /sqleditor/close/<trans_i Two state-mutating endpoints in pgAdmin 4's SQL Editor blueprint -- DELETE /sqleditor/close/ and POST /sqleditor/initialize/sqleditor/update_connection/// -- were the only routes in the module missing the @pga_login_required decorator. Both reach a pickle.loads sink on session['gridData'][]['command_obj']: the close endpoint via close_sqleditor_se
nvd
CVE-2025-13780P2HIGHCVSS 8.8≤ 9.102025-12-11
CVE-2025-13780 [HIGH] CWE-94 CVE-2025-13780: pgAdmin versions up to 9.10 are affected by a Remote Code Execution (RCE) vulnerability that occurs 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 mana
nvd
CVE-2026-86864P2HIGHCVSS 8.8fixed in 9.182026-09-17
CVE-2026-86864 [HIGH] CWE-22 CVE-2026-86864: pgAdmin 4's Backup tool appended the client-supplied 'database' field from the /backup/job/<sid>/obj pgAdmin 4's Backup tool appended the client-supplied 'database' field from the /backup/job//object request to the pg_dump argument vector as a bare trailing positional argument, without validation. Because pg_dump parses its options with getopt_long, which permutes arguments, a value beginning with a dash was interpreted as an option rather than as a d
nvd
CVE-2026-86863P2CRITICALCVSS 9.8≥ 6.2, < 9.182026-09-17
CVE-2026-86863 [CRITICAL] CWE-290 CVE-2026-86863: pgAdmin 4's Webserver authentication source is intended to accept an identity asserted by the web se pgAdmin 4's Webserver authentication source is intended to accept an identity asserted by the web server or reverse proxy in front of pgAdmin, delivered through the WSGI/CGI environment. WebserverAuthentication.get_user() read config.WEBSERVER_REMOTE_USER from request.environ and, when that returned nothing, fell back to reading the same name dire
nvd
CVE-2026-7816P2HIGHCVSS 8.8≥ 9.4, < 9.152026-05-11
CVE-2026-7816 [HIGH] CWE-78 CVE-2026-7816: OS command injection (CWE-78) vulnerability in pgAdmin 4 Import/Export query export. User-supplied OS 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 ")
nvd
CVE-2026-17566P2CRITICALCVSS 9.9fixed in 9.182026-07-31
CVE-2026-17566 [CRITICAL] CVE-2026-17566: pgAdmin 4's Import/Export Data tool builds a psql \copy (...) command line by interpolating a user-s pgAdmin 4's Import/Export Data tool builds a psql \copy (...) command line by interpolating a user-supplied SQL query into a Jinja template and passing the rendered line to psql via --command. To stop an attacker from breaking out of the (...) wrapper, create_import_export_job() (route POST /import_export/job/, gated only by the ordinary, commonly-granted
nvd
CVE-2023-5002P2HIGHCVSS 8.8fixed in 7.72023-09-22
CVE-2023-5002 [HIGH] CWE-78 CVE-2023-5002: A flaw was found in pgAdmin. This issue occurs when the pgAdmin server HTTP API validates the path a A flaw was found in pgAdmin. This issue occurs when the pgAdmin server HTTP API validates the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. Versions of pgAdmin prior to 7.6 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.
nvd
CVE-2026-12045P2HIGHCVSS 8.8≥ 9.13, < 9.162026-06-19
CVE-2026-12045 [HIGH] CWE-77 CVE-2026-12045: Read-only transaction bypass in the pgAdmin 4 AI Assistant allows an attacker who can influence data Read-only transaction bypass in the pgAdmin 4 AI Assistant allows an attacker who can influence database content that the assistant reads to execute arbitrary SQL with the privileges of the pgAdmin user's database role. The AI Assistant's execute_sql_query tool runs LLM-generated SQL inside a BEGIN TRANSACTION READ ONLY wrapper to prevent data modific
nvd
CVE-2026-7815P2HIGHCVSS 8.8≥ 7.6, < 9.152026-05-11
CVE-2026-7815 [HIGH] CWE-89 CVE-2026-7815: SQL injection vulnerability in pgAdmin 4 Maintenance Tool. Four user-supplied JSON fields (buffer_u SQL 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 t
nvd
CVE-2026-17347P2HIGHCVSS 8.8≥ 7.2, < 9.172026-07-31
CVE-2026-17347 [HIGH] CWE-78 CVE-2026-17347: The MASTER_PASSWORD_HOOK setting, introduced in pgAdmin 4 7.2, lets an administrator configure an ex The MASTER_PASSWORD_HOOK setting, introduced in pgAdmin 4 7.2, lets an administrator configure an external command that returns a per-user encryption key, with %u in the configured string replaced by the current user's name. The previous implementation substituted the username directly into the command string and executed the result with subprocess.Pop
nvd
CVE-2026-12044P3HIGHCVSS 8.8≥ 1.0, < 9.162026-06-19
CVE-2026-12044 [HIGH] CWE-89 CVE-2026-12044: SQL injection in pgAdmin 4 across every dialog template that renders ``COMMENT ON ... IS '<descripti SQL injection in pgAdmin 4 across every dialog template that renders ``COMMENT ON ... IS ''`` for a user-supplied description field. The Jinja templates for Domains (and their constraints), Foreign Tables, Languages, and Event Triggers, plus the Views OID-lookup query, interpolated the description directly inside a single-quoted SQL literal -- ``'{{ da
nvd
CVE-2026-17349P3CRITICALCVSS 9.6≥ 9.0, < 9.172026-07-31
CVE-2026-17349 [CRITICAL] CWE-522 CVE-2026-17349: /misc/workspace/adhoc_connect_server, part of the Workspaces feature introduced in pgAdmin 4 9.0, wh /misc/workspace/adhoc_connect_server, part of the Workspaces feature introduced in pgAdmin 4 9.0, when passed the id of an existing server, clones that server via Server.clone(), which copies every column from the source row, including user_id, shared, shared_username, and the stored credential fields password, save_password, and tunnel_password.
nvd
CVE-2026-12050P3HIGHCVSS 8.8≥ 1.0, < 9.162026-06-19
CVE-2026-12050 [HIGH] CWE-89 CVE-2026-12050: SQL injection in pgAdmin 4's named restore point endpoint (POST /browser/server/restore_point/{gid}/ SQL injection in pgAdmin 4's named restore point endpoint (POST /browser/server/restore_point/{gid}/{sid}). The user-supplied 'value' field was interpolated directly into the SQL string with str.format() instead of being passed as a bound parameter, allowing an authenticated pgAdmin user with a connected PostgreSQL session to inject additional statemen
nvd
Pgadmin 4 vulnerabilities | cvebase