A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-12765

CVE-2025-12765: pgAdmin 4 Auth Bypass Vulnerability

CVE-2025-12765 is an authentication bypass vulnerability in pgAdmin 4 affecting versions up to 9.9, allowing attackers to bypass TLS certificate verification in LDAP authentication. This article covers technical details, impact, and mitigation.

Updated: May 19, 2026

CVE-2025-12765 Overview

CVE-2025-12765 affects pgAdmin versions 9.9 and earlier. The vulnerability resides in the Lightweight Directory Access Protocol (LDAP) authentication mechanism, which fails to properly verify TLS certificates during the authentication flow. Attackers positioned on the network path between pgAdmin and the LDAP server can intercept authentication traffic without triggering certificate validation errors. This weakness is categorized under CWE-295: Improper Certificate Validation. Successful exploitation enables credential theft and authentication impersonation against PostgreSQL administrative interfaces.

Critical Impact

Attackers can intercept LDAP authentication traffic to capture pgAdmin user credentials and impersonate authenticated sessions, leading to unauthorized access to PostgreSQL database management functions.

Affected Products

  • pgAdmin 4 versions up to and including 9.9
  • Deployments using LDAP authentication backend
  • pgAdmin instances configured with TLS-protected LDAP connections

Discovery Timeline

  • 2025-11-13 - CVE-2025-12765 published to NVD
  • 2025-11-19 - Last updated in NVD database

Technical Details for CVE-2025-12765

Vulnerability Analysis

The vulnerability stems from improper TLS certificate validation in the pgAdmin LDAP authentication module. When pgAdmin establishes a TLS-protected connection to an LDAP directory server, the client does not enforce verification of the server certificate chain or hostname. This allows any TLS endpoint to terminate the authentication session, regardless of whether its certificate is trusted by the configured certificate authority store.

Attackers exploiting this flaw operate as a man-in-the-middle between pgAdmin and the legitimate LDAP server. The pgAdmin client accepts forged certificates and forwards user credentials to the attacker-controlled endpoint. The attack requires network positioning, which increases exploitation complexity but does not require authentication or user interaction.

This vulnerability is classified as a Certificate Validation Bypass affecting the integrity and confidentiality of the authentication channel. No public proof-of-concept code is available at the time of disclosure.

Root Cause

The pgAdmin LDAP client does not configure the underlying LDAP library to require certificate validation. Trust verification flags such as TLS_REQCERT are either not set to demand or are overridden during connection setup. The client establishes encrypted sessions without confirming the server identity.

Attack Vector

An attacker on the same network segment as a pgAdmin server, or positioned at an intermediate network hop, intercepts the outbound LDAP connection. The attacker presents a self-signed or forged certificate to the pgAdmin client. pgAdmin completes the TLS handshake and transmits user credentials in the LDAP bind request. The attacker captures these credentials and optionally proxies the connection to the real LDAP server to avoid detection.

Refer to the pgAdmin GitHub issue tracker for technical discussion of the flaw.

Detection Methods for CVE-2025-12765

Indicators of Compromise

  • Unexpected LDAP authentication failures or anomalous bind patterns in pgAdmin logs
  • LDAP traffic terminating at hosts other than the configured directory server
  • TLS certificates presented by LDAP endpoints that do not match the organization's certificate authority
  • pgAdmin sessions originating from unusual source addresses following LDAP authentication events

Detection Strategies

  • Inspect network flows from pgAdmin hosts to confirm LDAP traffic reaches only authorized directory servers
  • Compare TLS certificate fingerprints observed on LDAP connections against the expected server certificate
  • Audit pgAdmin configuration files for LDAP TLS settings and verify the trusted CA bundle path
  • Correlate authentication events between pgAdmin and the LDAP server to identify mismatched bind attempts

Monitoring Recommendations

  • Enable verbose logging on pgAdmin authentication modules to capture LDAP bind attempts and TLS negotiation details
  • Deploy network detection rules that flag LDAP/LDAPS traffic to unexpected destinations on port 636 or 389
  • Monitor for ARP spoofing, DNS poisoning, and rogue DHCP activity on segments hosting pgAdmin instances
  • Establish baseline metrics for LDAP authentication latency and alert on deviations consistent with proxied connections

How to Mitigate CVE-2025-12765

Immediate Actions Required

  • Upgrade pgAdmin to a version released after 9.9 that addresses the certificate validation flaw
  • Restrict network paths between pgAdmin servers and LDAP directory servers using segmentation and firewall rules
  • Rotate credentials for any accounts that authenticated to pgAdmin through LDAP during the exposure window
  • Review pgAdmin LDAP configuration to enforce strict TLS certificate validation where supported

Patch Information

Monitor the pgAdmin GitHub issue tracker for patch release announcements. Apply the fixed release to all pgAdmin deployments using LDAP authentication. Verify the upgrade in a staging environment before production rollout.

Workarounds

  • Disable LDAP authentication temporarily and revert to internal pgAdmin authentication until a patched release is deployed
  • Place pgAdmin and the LDAP server on an isolated management network to reduce attacker positioning opportunities
  • Pin the LDAP server certificate at the network layer using TLS inspection appliances configured to reject untrusted certificates
  • Enforce mutual TLS authentication on the LDAP server where supported to require client certificate presentation
bash
# Configuration example
# Review pgAdmin config_local.py LDAP settings
# Confirm CA certificate path and verification settings after patching
LDAP_USE_STARTTLS = True
LDAP_CA_CERT_FILE = '/etc/pki/tls/certs/ldap-ca.pem'
LDAP_CERT_FILE = ''
LDAP_KEY_FILE = ''

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechPgadmin

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-295
  • Vendor Resources
  • GitHub Issue Tracker
  • Related CVEs
  • CVE-2026-7813: pgAdmin 4 Authorization Bypass Vulnerability

  • CVE-2026-7820: pgAdmin 4 Auth Bypass Vulnerability

  • CVE-2026-1707: pgAdmin Auth Bypass Vulnerability

  • CVE-2024-9014: pgAdmin 4 Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English