CVE-2025-12765
Python vulnerability analysis and mitigation

Overview

A vulnerability in pgAdmin version 9.9 and earlier affects the LDAP authentication mechanism, allowing attackers to bypass TLS certificate verification (CVE-2025-12765). The vulnerability was discovered by Arad Inbar and disclosed on November 13, 2025 (GitHub Issue).

Technical details

The vulnerability exists in the __configure_tls method of the Ldap class within web/pgadmin/authenticate/ldap.py. The issue stems from the default configuration where certificate validation mode is set to ssl.CERT_NONE, effectively disabling TLS certificate validation. Certificate validation (ssl.CERT_REQUIRED) is only enabled if specific configuration parameters (LDAP_CA_CERT_FILE, LDAP_CERT_FILE, and LDAP_KEY_FILE) are all set. The vulnerability has been assigned CWE-295 and carries a CVSS v3.1 score of 7.5 with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (Miggo).

Impact

The vulnerability enables on-path attackers to perform man-in-the-middle attacks against the LDAP authentication process. Attackers can terminate TLS with a fraudulent certificate and proxy traffic, potentially stealing LDAP bind credentials and manipulating directory responses. This is particularly concerning in Active Directory environments where MTLS is typically disabled (GitHub Issue).

Mitigation and workarounds

A patch has been implemented that introduces a new configuration parameter, LDAP_CERT_VALIDATE, which defaults to True. This ensures that certificate validation (ssl.CERT_REQUIRED) is enabled by default and must be explicitly disabled if needed (Miggo).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22033HIGH8.6
  • PythonPython
  • label-studio
NoNoJan 12, 2026
CVE-2025-68472HIGH8.1
  • PythonPython
  • mindsdb
NoYesJan 12, 2026
CVE-2026-22251MEDIUM5.3
  • PythonPython
  • wlc
NoYesJan 12, 2026
CVE-2026-22691LOW2.7
  • PythonPython
  • pypdf2
NoYesJan 10, 2026
CVE-2026-22250LOW2.5
  • PythonPython
  • wlc
NoYesJan 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management