Improper Encoding or Escaping of Output Affecting python-ldap package, versions [,3.4.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PYTHONLDAP-13535054
  • published12 Oct 2025
  • disclosed10 Oct 2025
  • creditArad Inbar

Introduced: 10 Oct 2025

NewCVE-2025-61912  (opens in a new tab)
CWE-116  (opens in a new tab)
CWE-170  (opens in a new tab)

How to fix?

Upgrade python-ldap to version 3.4.5 or higher.

Overview

python-ldap is a Python modules for implementing LDAP clients

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via the escape_dn_chars function. An attacker can cause client-side failures, such as unhandled exceptions or process crashes, by supplying input containing a NUL byte that is improperly escaped, leading to denial of service before any network communication occurs.

References

CVSS Base Scores

version 4.0
version 3.1