PatchSiren

pgadmin.org CVE debriefs · Page 2

These pages are published after PatchSiren validates generated defensive summaries against stored public CVE and source evidence.

CRITICAL pgadmin.org CVE published 2026-05-11

CVE-2026-7813

PatchSiren debrief for CVE-2026-7813: pgAdmin 4 server mode has a critical authorization vulnerability affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules. Multiple endpoints fetch user-owned objects without filtering by the requesting user's identity, allowing an authenticated user to access another user's private servers, server groups, background processes, and debugger function arguments by guessing object IDs. The Shared Servers feature contains multiple issues, including credential leakage, privilege escalation via writable passexec_cmd, and data corruption via SQLAlchemy session mutations. Defenders should prioritize updating to a non

MEDIUM pgadmin.org CVE published 2026-05-11

CVE-2026-7820

pgAdmin 4 versions prior to 9.15 contain an authentication bypass vulnerability in the account lockout mechanism. The application enforces MAX_LOGIN_ATTEMPTS only within its custom /authenticate/login view, while Flask-Security's default /login view—automatically registered and reachable on every server—fails to consult the User.locked field. This occurs because pgAdmin's User model relied on Flask-Security's UserMixin.is_locked() (which always returns 'not locked') and Flask-Login's is_active (which only checks the active column, not locked). An attacker who triggers an account lockout via /authenticate/login can obtain a session by re-submitting valid credentials directly to /login, defeating brute-force protection for INTERNAL authentication source accounts. Additionally, login attempts via /login are never rate-limited, enabling unbounded online password-guessing attacks against INTERNAL accounts regardless of MAX_LOGIN_ATTEMPTS. The fix overrides User.is_active and User.is_locked() to ensure the locked column is enforced on every authentication path. LDAP, OAuth2, Kerberos, and Webserver users are not affected by this bypass as they have no local password and are rejected by Flask-Security's LoginForm.validate before the locked check; the lockout itself is also internal-only.

HIGH pgadmin.org CVE published 2026-05-11

CVE-2026-7819

A symbolic-link path traversal vulnerability in pgAdmin 4's File Manager allows authenticated users to write files to arbitrary locations on the server filesystem. The root cause is a mismatch between access validation and file operations: `check_access_permission` uses `os.path.abspath`, which normalizes parent-directory references but does not resolve symbolic links, while the subsequent kernel write follows symlinks. An attacker can plant a symbolic link within their own storage directory pointing outside it, then induce pgAdmin to write to any path reachable by the pgAdmin process. The fix replaces `os.path.abspath` with `os.path.realpath` for both source and destination paths, introduces an `_open_upload_target` helper that opens targets with `O_NOFOLLOW` (mode 0o600) to eliminate the leaf-component TOCTOU window between access check and open, and hardens file permissions from 0o644 to 0o600. Affected versions are pgAdmin 4 before 9.15.

HIGH pgadmin.org CVE published 2026-05-11

CVE-2026-7818

pgAdmin 4 versions before 9.15 contain a deserialization vulnerability in the FileBackedSessionManager component. The session manager performed unsafe deserialization of session file contents using Python's standard pickle module before verifying HMAC integrity. This allowed any file placed in the sessions directory to be deserialized unconditionally. An authenticated user with write access to the sessions directory—whether through misconfiguration or combined with a path-traversal vulnerability—could plant a crafted serialized payload to achieve operating-system level remote code execution under the pgAdmin process identity. The fix implements a 64-byte hex-encoded SHA-256 HMAC over the session body, computed with SECRET_KEY, and verifies it using hmac.compare_digest before any deserialization occurs. The integrity check is implemented as a raised exception rather than an assertion to prevent bypass under Python's -O optimization flag.

HIGH pgadmin.org CVE published 2026-05-11

CVE-2026-7817

CVE-2026-7817 documents Local File Inclusion (LFI) and Server-Side Request Forgery (SSRF) vulnerabilities in pgAdmin 4's LLM API configuration endpoints. The issue stems from insufficient validation of user-supplied `api_key_file` and `api_url` preferences, which were passed directly to LLM provider clients without sanitization. An authenticated attacker could exploit this to read arbitrary files readable by the pgAdmin process by manipulating the `api_key_file` path, or coerce the application into making requests to internal network targets—including cloud metadata services such as 169.254.169.254—by setting a malicious `api_url`. The vulnerable endpoints include the chat path and model-list functionality. The fix implements path restriction for `api_key_file` to user-private storage in server mode or the home directory in desktop mode, enforces printable-ASCII key validation with a 1024-byte read limit, and introduces a configurable allow-list (`config.ALLOWED_LLM_API_URLS`) to gate all `api_url` inputs. Affected versions span from 9.13 up to but not including 9.15. The CVSS 4.0 vector indicates network attack vector, low attack complexity, low privileges required, and high confidentiality impact.

HIGH pgadmin.org CVE published 2026-05-11

CVE-2026-7816

CVE-2026-7816 is a high-severity OS command injection vulnerability (CWE-78) in pgAdmin 4's Import/Export query export functionality, published 2026-05-11 and last modified 2026-05-26. The vulnerability exists because user-supplied input was interpolated directly into a psql `COPY` metacommand template without proper sanitization. An authenticated attacker 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 including format, on_error, and log_verbosity were also raw-interpolated and exploitable. The fix implements a parentheses-balance parser modeled on psql's strtokx tokenizer, allow-lists for format/on_error/log_verbosity values, rejection of null bytes in queries, and tightened type and gating checks. Affected versions are pgAdmin 4 from 9.4 up to but not including 9.15.

HIGH pgadmin.org CVE published 2026-05-11

CVE-2026-7815

A SQL injection vulnerability in pgAdmin 4's Maintenance Tool allows authenticated users with tools_maintenance permission to execute arbitrary SQL on connected PostgreSQL servers. Four JSON parameters (buffer_usage_limit, vacuum_parallel, vacuum_index_cleanup, reindex_tablespace) were concatenated directly into VACUUM/ANALYZE/REINDEX commands without proper sanitization. Attackers can break out of option syntax and inject SQL, potentially escalating to OS command execution via COPY ... TO PROGRAM. The vulnerability affects pgAdmin 4 versions from 7.6 through 9.14. The fix implements server-side allow-listing for all four fields and applies the qtIdent filter to reindex_tablespace.

MEDIUM pgadmin.org CVE published 2026-05-11

CVE-2026-7814

A stored cross-site scripting (XSS) vulnerability in pgAdmin 4 allows attacker-controlled JavaScript execution via malicious PostgreSQL object names. The vulnerability exists in the Browser Tree and Explain Visualizer modules, where user-controlled object names (database, schema, table, column, etc.) were assigned to DOM elements using innerHTML. Crafted object names containing HTML markup can execute JavaScript in the browser of any pgAdmin user who navigates to or executes EXPLAIN over the malicious object. The fix replaces innerHTML with textContent to properly neutralize HTML content. Affected versions are pgAdmin 4 before 9.15. The CVSS 4.0 score of 4.8 (MEDIUM) reflects the high privileges required to create database objects and the user interaction needed for exploitation.