pgAdmin
CVE-2025-12765
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain on-path position between pgAdmin and LDAP
-
DeliveryPresent rogue LDAP server with invalid TLS cert
-
ExploitpgAdmin skips certificate verification
-
ExecutionIntercept credentials or forge auth success
-
ImpactAuthenticate as arbitrary pgAdmin user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
|
| Exploitation Conditions | pgAdmin must be configured to use LDAP as an authentication source with TLS (LDAPS or StartTLS). The attacker must hold a man-in-the-middle / on-path position between the pgAdmin server and the LDAP server to substitute a rogue directory endpoint - this network-position requirement is the primary limiter and is why CVSS assigns AC:H. Deployments using pgAdmin's internal/local authentication (the default) or without an interceptable network path are not exploitable. No user interaction or prior authentication is required once the MITM position is held. |
| Impact | This is a genuine but conditionally-exploitable weakness rather than an urgent widespread threat. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N, 7.4 High) tells a consistent story: exploitation is network-reachable and requires no authentication or user interaction, but AC:H reflects a meaningful precondition - the attacker must occupy an on-path/man-in-the-middle position between pgAdmin and the LDAP server, since the flaw (CWE-295) is failure to verify the LDAP server's TLS certificate. All signals point away from imminent mass exploitation: EPSS is 0.05% (16th percentile), the CVE is not in CISA KEV, and no public exploit code is referenced. Therefore this is 'no public exploit identified at time of analysis.' The impact is high (C:H/I:H) because a successful MITM lets an attacker impersonate the LDAP directory to harvest credentials or authenticate as an arbitrary pgAdmin user, but the AC:H MITM requirement plus the need for LDAP auth to be configured make this a targeted-scenario issue, not a spray-and-pray one. No signal conflict: the low EPSS/absent-KEV status is fully consistent with the high complexity of the attack. |
| Exploit ScenarioDerived | An attacker positioned on the network path between the pgAdmin server and its LDAP/Active Directory server (e.g., via ARP spoofing on a shared segment or DNS/route manipulation) presents a rogue LDAP endpoint with an invalid or self-signed TLS certificate. Because pgAdmin <= 9.9 does not verify the certificate, the connection succeeds and the attacker either captures the credentials pgAdmin forwards or returns a forged 'authentication success' to log in as a chosen user. No public proof-of-concept is referenced, and the man-in-the-middle requirement (AC:H) raises the practical bar. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 30, 2026
LDAP-based authentication in pgAdmin 4 through version 9.9 can be subverted by an on-path attacker because the application fails to properly validate the TLS certificate of the directory server it connects to, allowing a rogue LDAP endpoint to be substituted between pgAdmin and the legitimate server. The flow is unauthenticated (CVSS PR:N) with no user interaction, and the assessed impact is high for both confidentiality and integrity, but exploitation requires the attacker to already hold a man-in-the-middle position and the deployment to be configured for LDAP over TLS (LDAPS or StartTLS); default pgAdmin installations using internal/local authentication are not exposed. EPSS is only 0.05% (16th percentile) and no public exploit code or CISA KEV entry was identified at time of analysis, so this is a genuine but conditionally exploitable weakness rather than an urgent, widespread threat.
Earlier versions of this analysis (1)
pgAdmin <= 9.9 is affected by a vulnerability in the LDAP authentication mechanism allows bypassing TLS certificate verification. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
RemediationAI
Apply the vendor fix for pgAdmin 4; the upstream advisory (GitHub issue https://github.com/pgadmin-org/pgadmin4/issues/9324) confirms a vendor remedy exists, and SUSE users should install the packaged updates SUSE-SU-2026:0015 (https://www.suse.com/support/update/SUSE-SU-2026:0015/) and SUSE-SU-2026:0016 (https://www.suse.com/support/update/SUSE-SU-2026:0016/) rather than relying on an unconfirmed fixed release number. If immediate patching is not possible, the practical compensating control is to eliminate the attacker's network position: restrict outbound LDAP/LDAPS traffic from the pgAdmin host so it can reach only the single trusted directory server IP/hostname (via firewall or egress ACLs), which sharply reduces MITM opportunity but will break any other services on that host that share the same egress path and adds operational overhead when the directory server changes. Operators can also pin trust at the network layer by placing pgAdmin and the directory server on a segmented, mutually authenticated network or inside an encrypted tunnel, and by enforcing a private CA whose certificates the LDAP server actually presents; note that host-level certificate pinning cannot be configured from pgAdmin itself because the defect is in its own validation logic, so these are containment measures, not a substitute for the patch. As a last resort, temporarily switching pgAdmin to internal/local authentication removes the LDAP code path entirely but sacrifices centralized credential management, SSO, and directory group mapping, and should be treated as an interim measure only.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pgAdmin 4 is a PostgreSQL administration and management platform that supports external authentication backends, including LDAP/Active Directory, where the pgAdmin server acts as a client connecting to a directory server over LDAPS or StartTLS. The root cause is CWE-295 (Improper Certificate Validation): the LDAP authentication code path fails to correctly verify the TLS certificate presented by the directory server, which defeats the trust anchor that TLS is supposed to provide. The affected CPE is cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*, confirming the entire pgAdmin 4 line up to and including 9.9 across PostgreSQL-targeted deployments. Because the client does not enforce certificate trust, an adversary who can interpose on the network path can present a forged or untrusted certificate and impersonate the directory server, capturing or answering the authentication exchange. The assessed vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N reflects that the attack is network-delivered and requires no credentials or user action, but is rated AC:H precisely because the attacker must already occupy an on-path/MITM position and the victim instance must be configured to use TLS-protected LDAP.
Know when Pgadmin 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
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
AC:H because a man-in-the-middle position and LDAP TLS configuration are required; PR:N/UI:N since the flaw defeats authentication itself; C:H/I:H for credential capture and impersonation, A:N as no availability impact.
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
pgAdmin <= 9.9 is affected by a vulnerability in the LDAP authentication mechanism allows bypassing TLS certificate verification.
Executive ViewAI
pgAdmin 4 deployments that rely on LDAP over TLS for authentication face a high-severity vulnerability (CVE-2025-12765) where an attacker with a man-in-the-middle position could bypass authentication and gain unauthorized access to database management interfaces. Organizations using default local authentication are not affected, but those with LDAP-integrated pgAdmin instances could expose sensitive database environments. Given the low exploitation likelihood (EPSS 0.1%) and no public exploit identified at time of analysis, this is a conditional risk that warrants prompt patching but not emergency escalation.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)NVD
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
pgAdmin <= 8.3 is affected by a path-traversal vulnerability while deserializing users’ sessions in the session handling
pgAdmin <= 8.4 is affected by a Remote Code Execution (RCE) vulnerability through the validate binary path API. Rated cr
The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external Post
pgAdmin versions 8.11 and earlier are vulnerable to a security flaw in OAuth2 authentication. Rated medium severity (CVS
Remote code execution in pgAdmin 4 (versions up to and including 9.9) lets an attacker who can get a crafted PLAIN-forma
SQL injection sandbox escape in pgAdmin 4's AI Assistant (versions 9.13 through 9.16) lets an attacker break out of the
OS command injection in pgAdmin 4 (all versions before 9.18) lets an authenticated user with the commonly-granted tools_
Command injection in pgAdmin 4 before 9.19 lets an authenticated, low-privileged database user execute arbitrary operati
pgAdmin <= 8.5 is affected by XSS vulnerability in /settings/store API response json payload. Rated medium severity (CVS
Cross-tenant credential theft in pgAdmin 4 (9.0 through 9.16) lets an authenticated non-owner user hijack another user's
pgAdmin <= 9.1 is affected by a security vulnerability with Cross-Site Scripting(XSS). Rated critical severity (CVSS 9.1
Same weakness CWE-295 – Improper Certificate Validation
View allSame technique Authentication Bypass
View allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Python 3 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy LTS 4.3 | Fixed |
| SUSE Manager Retail Branch Server LTS 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| openSUSE Tumbleweed | Fixed |
| 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 |
| openSUSE Leap 15.6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Module for Python 3 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Proxy LTS 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Retail Branch Server LTS 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| SUSE CaaS Platform 4.0 | Fixed |
| SUSE Enterprise Storage 6 | Fixed |
| SUSE Enterprise Storage 7 | Fixed |
| SUSE Enterprise Storage 7.1 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP1 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP2 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP2 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP3 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP1 | Fixed |
| SUSE Linux Enterprise Server 15 SP1-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP2 | Fixed |
| SUSE Linux Enterprise Server 15 SP2-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP3 | Fixed |
| SUSE Linux Enterprise Server 15 SP3-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| SUSE Manager Proxy 4.0 | Fixed |
| SUSE Manager Proxy 4.1 | Fixed |
| SUSE Manager Proxy 4.2 | Fixed |
| SUSE Manager Retail Branch Server 4.0 | Fixed |
| SUSE Manager Retail Branch Server 4.1 | Fixed |
| SUSE Manager Retail Branch Server 4.2 | Fixed |
| SUSE Manager Server 4.0 | Fixed |
| SUSE Manager Server 4.1 | Fixed |
| SUSE Manager Server 4.2 | Fixed |
| openSUSE Leap 15.3 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| SUSE Manager Proxy 4.3 LTS | Fixed |
| SUSE Manager Retail Branch Server 4.3 LTS | Fixed |
| SUSE Manager Server 4.3 LTS | Fixed |
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB