Improper Encoding or Escaping of Output Affecting python-ldap package, versions <3.4.4-1ubuntu0.25.04.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

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-UBUNTU2504-PYTHONLDAP-13569971
  • published21 Oct 2025
  • disclosed10 Oct 2025

Introduced: 10 Oct 2025

CVE-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 Ubuntu:25.04 python-ldap to version 3.4.4-1ubuntu0.25.04.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-ldap package and not the python-ldap package as distributed by Ubuntu. See How to fix? for Ubuntu:25.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1