Skip to content
OpenAdvisories
Medium USN-7828-1 2 CVEs

python-ldap vulnerabilities

Published Oct 20, 2025 · Updated Jun 25, 2026

Summary

It was discovered that Python LDAP incorrectly handled special characters
in the special character filtering function. A remote attacker could
possibly use this issue to perform LDAP injection attacks.
(CVE-2025-61911)

Arad Inbar discovered that Python LDAP incorrectly escaped NUL character
bytes. An attacker could possibly use this issue to cause a denial of
service. (CVE-2025-61912)

Fixed packages 6

ReleasePackageFixed in
Ubuntu · 22.04 LTS 22.04:LTS python-ldap 3.2.0-4ubuntu7.2
Ubuntu · 24.04 LTS 24.04:LTS python-ldap 3.4.4-1ubuntu0.24.04.1
Ubuntu · 25.10 python-ldap 3.4.4-1ubuntu0.25.10.1
Ubuntu · Pro 16.04 LTS Pro:16.04:LTS python-ldap 2.4.22-0.1ubuntu0.1~esm1
Ubuntu · Pro 18.04 LTS Pro:18.04:LTS python-ldap 3.0.0-1ubuntu0.2+esm1
Ubuntu · Pro 20.04 LTS Pro:20.04:LTS python-ldap 3.2.0-4ubuntu2.1+esm1

Vulnerabilities 2

  • Medium 5.5

    python-ldap has sanitization bypass in ldap.filter.escape_filter_chars

    python-ldap is a lightweight directory access protocol (LDAP) client API for Python. In versions prior to 3.4.5, the sanitization method `ldap.filter.escape_filter_chars` can be tricked to skip escaping of special characters when a crafted `list` or `dict` is…

  • Medium 5.5

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

    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. An…

References

  • report
    https://ubuntu.com/security/CVE-2025-61911
  • report
    https://ubuntu.com/security/CVE-2025-61912