Skip to main content

pgAdmin 4 CVE-2026-7817

| EUVDEUVD-2026-29085 HIGH
Files or Directories Accessible to External Parties (CWE-552)
2026-05-11 PostgreSQL GHSA-p58c-q354-6c4f
7.1
CVSS 4.0 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain pgAdmin credentials
  2. Delivery
    Access LLM configuration interface
  3. Exploit
    Modify api_key_file to target path
  4. Execution
    Trigger chat endpoint
  5. Impact
    Exfiltrate file contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling File access restriction
MITRE ATT&CK

2 techniques across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires an authenticated user account in pgAdmin 4. The attacker must have credentials to access the pgAdmin web interface and permission to modify LLM configuration settings. The vulnerability is triggered when the chat or model-list endpoints process the configured api_key_file or api_url parameters. The api_key_file path must reference a file readable by the pgAdmin process (typically files with world-readable or group-readable permissions, or files in the same user context). The api_url parameter is vulnerable when set to any arbitrary HTTP/HTTPS address, including cloud metadata services or private infrastructure endpoints. No special deployment configuration is required; default pgAdmin installations with LLM features enabled are vulnerable. The only significant limiting factor is the requirement for prior authentication, which reduces the attack surface compared to unauthenticated exploitation but does not require elevated privileges within pgAdmin.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) indicates network-accessible exploitation requiring only low-privilege authentication and no user interaction, with high confidentiality impact but no integrity or availability impact. This scoring reflects the dual-vulnerability nature: file read access (high confidentiality) via LFI and SSRF capability to external targets, but no ability to modify or delete data. The authentication requirement (PR:L) significantly limits real-world risk compared to an unauthenticated variant, as it assumes an attacker has already obtained valid pgAdmin credentials. EPSS score is not provided in source data. The vulnerability is particularly dangerous in cloud-hosted or containerized deployments where metadata services (AWS EC2 metadata at 169.254.169.254, GCP metadata server) are accessible from the pgAdmin process, potentially exposing temporary credentials and identity tokens. The fix implemented (path restriction to private storage/home directory, printable-ASCII enforcement, 1024-byte read cap, configurable allowlist) is appropriately scoped and suggests the vendor recognized the severity. KEV (Known Exploited Vulnerability) status is not indicated in provided data. No public proof-of-concept is referenced, though the GitHub issue number (9900) is available for further research.

Exploit ScenarioDerived

An attacker with valid pgAdmin credentials (obtained via credential reuse, social engineering, or a separate authentication bypass) logs into pgAdmin and navigates to LLM configuration settings. The attacker modifies the api_key_file field to reference /etc/passwd or other sensitive files readable by the pgAdmin process (such as ~/.pgpass, private SSH keys, or database connection files). When the attacker triggers the chat or model-list endpoint, pgAdmin reads the specified file and returns its contents in the API response or error message, exfiltrating the data. Alternatively, the attacker sets api_url to http://169.254.169.254/latest/meta-data/iam/security-credentials/ to retrieve AWS IAM credentials, or points it to internal services (e.g., database admin interfaces, monitoring dashboards) not exposed to the attacker's network.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 11, 2026

Authenticated users in pgAdmin 4 before version 9.15 can read arbitrary server-side files or trigger server-side request forgery (SSRF) attacks via unvalidated LLM API configuration endpoints. The vulnerabilities exist in the chat and model-list endpoints where user-supplied api_key_file and api_url parameters are passed directly to LLM provider clients without sanitization, enabling attackers to exfiltrate sensitive files (database credentials, private keys) readable by the pgAdmin process or coerce internal requests to cloud metadata services and private infrastructure.

RemediationAI

Upgrade pgAdmin 4 to version 9.15 or later immediately. This release enforces validation of the api_key_file parameter to restrict file access to the user's private storage directory (server mode) or home directory (desktop mode), implements printable-ASCII character enforcement for API keys, and caps file reads at 1024 bytes to limit information leakage. The api_url parameter is now validated against a configurable allowlist defined in config.ALLOWED_LLM_API_URLS. If immediate upgrade is not feasible, implement compensating controls: disable or restrict access to the LLM configuration endpoints at the reverse proxy or firewall level, restrict pgAdmin process permissions to deny access to sensitive file paths (using OS-level access controls), and prevent outbound HTTP/HTTPS connections to private IP ranges (169.254.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) via network egress filtering. Note that these controls reduce functionality (LLM features become unavailable) and require ongoing maintenance but are effective until patching is completed. Reference: PostgreSQL security advisory and pgAdmin issue tracker for official guidance.

Affected VersionsENISA

pgAdmin 4 9.13 <9.15

Affected Packages

pypi pgadmin4 fix: 9.15
euvd pgadmin_4 fix: 9.15

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pgAdmin 4 integrates Large Language Model (LLM) providers through configurable API endpoints. The vulnerability stems from insufficient input validation in the LLM configuration mechanism, specifically the api_key_file parameter (intended to reference credential files) and api_url parameter (intended to specify LLM service endpoints). The application passes these parameters directly to underlying LLM client libraries without path canonicalization, URL validation, or schema enforcement. This creates a classic LFI/SSRF pattern where user-controlled input influences file I/O and HTTP request destinations. The CWE classification is not provided in the source data, but the root causes are path traversal (LFI component) and improper resource validation for URL schemes (SSRF component). Affected versions prior to 9.15 lack allowlist-based validation and path restrictions.

Know when Pgadmin 4 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Patch available
May 11, 2026 - 17:17 EUVD
Severity Changed
May 11, 2026 - 16:22 NVD
MEDIUM HIGH
CVSS changed
May 11, 2026 - 16:22 NVD
6.5 (MEDIUM) 7.1 (HIGH)
CVE Published
May 11, 2026 - 14:35 nvd
MEDIUM 6.5

DescriptionCVE.org

Local 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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2024-2044 CRITICAL POC
9.9 Mar 07

pgAdmin <= 8.3 is affected by a path-traversal vulnerability while deserializing users’ sessions in the session handling

CVE-2024-3116 CRITICAL POC
9.8 Apr 04

pgAdmin <= 8.4 is affected by a Remote Code Execution (RCE) vulnerability through the validate binary path API. Rated cr

CVE-2026-12046 CRITICAL POC
9.5 Jun 18

Remote unauthenticated access to two SQL Editor endpoints in pgAdmin 4 server-mode deployments (versions 6.9 through 9.1

CVE-2022-4223 HIGH POC
8.8 Dec 13

The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external Post

CVE-2024-9014 MEDIUM POC
6.5 Sep 23

pgAdmin versions 8.11 and earlier are vulnerable to a security flaw in OAuth2 authentication. Rated medium severity (CVS

CVE-2025-12762 CRITICAL
9.8 Nov 13

Remote code execution in pgAdmin 4 (versions up to and including 9.9) lets an attacker who can get a crafted PLAIN-forma

CVE-2026-12045 CRITICAL
9.4 Jun 18

Remote SQL injection via prompt injection in pgAdmin 4 versions 9.13 through 9.15 allows attackers who can write content

CVE-2026-17351 CRITICAL
9.4 Jul 31

SQL injection sandbox escape in pgAdmin 4's AI Assistant (versions 9.13 through 9.16) lets an attacker break out of the

CVE-2026-17566 CRITICAL POC
9.4 Jul 31

OS command injection in pgAdmin 4 (all versions before 9.18) lets an authenticated user with the commonly-granted tools_

CVE-2026-7813 CRITICAL
9.4 May 11

Authorization bypass and privilege escalation in pgAdmin 4 server mode allows authenticated users to access other users'

CVE-2024-4216 MEDIUM POC
5.4 May 02

pgAdmin <= 8.5 is affected by XSS vulnerability in /settings/store API response json payload. Rated medium severity (CVS

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Python 3 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy