Read the docs
TI-2025-38262 Aliases CVE-2025-61912GHSA-p34h-wq7j-h5v6

python-ldap Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination

Priority MEDIUM 58CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · None · Low
Fix status
Partial Red Hat: 9 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.

Summary

python-ldap is a lightweight directory access protocol (LDAP) client API for Python. In versions prior to 3.4.5, ldap.dn.escape_dn_chars() escapes \x00 incorrectly by emitting a backslash followed by a literal NUL byte instead of the RFC-4514 hex form \00. Any application that uses this helper to construct DNs from untrusted input can be made to consistently fail before a request is sent to the LDAP server (e.g., AD), resulting in a client-side denial of service. Version 3.4.5 contains a patch for the issue.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00458 39th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial python-ldap (python-ldap): 3.4.5python-ldap (PyPI): 3.4.5Red Hat: 9 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
python-ldappython-ldapbefore 3.4.53.4.5Patch availableCNA
—python-ldap (PyPI)before 3.4.53.4.5Patch availableGHSA-p34h-wq7j-h5v6
  • python-ldap Vendorpython-ldap Affected before 3.4.5 Fixed in 3.4.5 Patch available CNA
  • python-ldap (PyPI) Vendor— Affected before 3.4.5 Fixed in 3.4.5 Patch available GHSA-p34h-wq7j-h5v6

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:python-ldap:python-ldap:*:*:*:*:*:*:*:*before 3.4.5Vulnerablepython-ldap
  • cpe:2.3:a:python-ldap:python-ldap:*:*:*:*:*:*:*:* Versions before 3.4.5 Vulnerable ·python-ldap

Remediation

  • Fix · CNA python-ldap (python-ldap) Fixed in 3.4.5
  • Fix · GHSA-p34h-wq7j-h5v6 python-ldap (PyPI) Fixed in 3.4.5 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Ansible Automation Platform 2AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 8AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
Red Hat OpenStack Platform 13 (Queens)AffectedNo fix planned: Out of support scope
Red Hat Quay 3AffectedNo fix yet: Fix deferred
Red Hat Satellite 6AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-61912
  2. 2026-10-03 Alias added: GHSA-p34h-wq7j-h5v6

References

  • TI-2025-38261 python-ldap has sanitization bypass in ldap.filter.escape_filter_chars CVSS 4.0MEDIUM 5.5
  • TI-2021-21516 python-ldap before 3.4.0 is vulnerable to a denial of service when ldap.schema is used… CVSS 3.1MEDIUM 6.5

Sources