Improper Validation of Specified Type of Input 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.06% (19th 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-13535079
  • published12 Oct 2025
  • disclosed10 Oct 2025
  • creditlukas-eu

Introduced: 10 Oct 2025

NewCVE-2025-61911  (opens in a new tab)
CWE-1287  (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 Validation of Specified Type of Input via the escape_filter_chars function. An attacker can bypass input sanitization and potentially manipulate or disclose LDAP data by supplying crafted list or dict objects as the assertion_value parameter when the escape_mode is set to 1.

Note: This is only exploitable if the application uses the non-default escape_mode=1 configuration and passes untrusted list or dict objects to the function.

References

CVSS Base Scores

version 4.0
version 3.1