CVE catalog

CVE-2025-61911

Python LDAP vulnerabilities

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.32% · Oct 25, 2026

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 supplied as the `assertion_value` parameter, and the non-default `escape_mode=1` is configured. The method `ldap.filter.escape_filter_chars` supports 3 different escaping modes. `escape_mode=0` (default) and `escape_mode=2` happen to raise exceptions when a `list` or `dict` object is supplied as the `assertion_value` parameter. However, `escape_mode=1` computes without performing adequate logic to ensure a fully escaped return value. If an application relies on the vulnerable method in the `python-ldap` library to escape untrusted user input, an attacker might be able to abuse the vulnerability to launch ldap injection attacks which could potentially disclose or manipulate ldap data meant to be inaccessible to them. Version 3.4.5 fixes the issue by adding a type check at the start of the `ldap.filter.escape_filter_chars` method to raise an exception when the supplied `assertion_value` parameter is not of type `str`.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-ldapsid3.4.8-1fixed
Debianpython-ldapforky3.4.8-1fixed
Debianpython-ldaptrixie3.4.4-1+deb13u1fixed
Debianpython-ldapbookworm3.4.3-2+deb12u1fixed
Ubuntupython-ldapnobleNot reportedvulnerable
Ubuntupython-ldapnoble3.4.4-1ubuntu0.24.04.1fixed
Ubuntupython-ldap-docnoble3.4.4-1ubuntu0.24.04.1fixed
Ubuntupython3-ldapnoble3.4.4-1ubuntu0.24.04.1fixed
Ubuntupython3-pyldapnoble3.4.4-1ubuntu0.24.04.1fixed
Cpepython-ldapNot reported3.4.5fixed
Ubuntupython-ldappro3.1.0-2build1vulnerable
Ubuntupython-ldappro3.1.0-2build2vulnerable
Ubuntupython-ldappro3.2.0-3vulnerable
Ubuntupython-ldappro3.2.0-3ubuntu1vulnerable
Ubuntupython-ldappro3.2.0-3ubuntu2vulnerable
Ubuntupython-ldappro3.2.0-3ubuntu3vulnerable
Ubuntupython-ldappro3.2.0-4ubuntu2vulnerable
Ubuntupython-ldappro3.2.0-4ubuntu2.1vulnerable
Ubuntupython-ldappro3.2.0-4ubuntu2.1+esm1fixed
Ubuntupython-ldap22.043.2.0-4ubuntu5vulnerable
Ubuntupython-ldap22.043.2.0-4ubuntu6vulnerable
Ubuntupython-ldap22.043.2.0-4ubuntu7vulnerable
Ubuntupython-ldap22.043.2.0-4ubuntu7.1vulnerable
Ubuntupython-ldap22.043.2.0-4ubuntu7.2fixed
Ubuntupython-ldap24.043.4.3-2build2vulnerable
Ubuntupython-ldap24.043.4.3-2build3vulnerable
Ubuntupython-ldap24.043.4.3-2ubuntu1vulnerable
Ubuntupython-ldap24.043.4.4-1vulnerable
Ubuntupython-ldap24.043.4.4-1build1vulnerable
Ubuntupython-ldap24.043.4.4-1ubuntu0.24.04.1fixed
Ubuntupython-ldap25.103.4.4-1build3vulnerable
Ubuntupython-ldap25.103.4.4-1ubuntu0.25.10.1fixed
Susepython-ldaplinux enterprise server 16.03.4.4-160000.3.1fixed
Susepython-ldaplinux enterprise server for sap applications 16.03.4.4-160000.3.1fixed
Opensusepython-ldapleap 16.03.4.4-160000.3.1fixed
Opensusepython-ldaptumbleweed3.4.5-1.1fixed
Ubuntupython-ldappro3.1.0-2build1vulnerable
Ubuntupython-ldappro3.1.0-2build2vulnerable
Ubuntupython-ldappro3.2.0-3vulnerable
Ubuntupython-ldappro3.2.0-3ubuntu1vulnerable
Ubuntupython-ldappro3.2.0-3ubuntu2vulnerable
Ubuntupython-ldappro3.2.0-3ubuntu3vulnerable
Ubuntupython-ldappro3.2.0-4ubuntu2vulnerable
Ubuntupython-ldappro3.2.0-4ubuntu2.1vulnerable
Ubuntupython-ldappro3.2.0-4ubuntu2.1+esm1fixed
Ubuntupython-ldap22.043.2.0-4ubuntu5vulnerable
Ubuntupython-ldap22.043.2.0-4ubuntu6vulnerable
Ubuntupython-ldap22.043.2.0-4ubuntu7vulnerable
Ubuntupython-ldap22.043.2.0-4ubuntu7.1vulnerable
Ubuntupython-ldap22.043.2.0-4ubuntu7.2fixed
Ubuntupython-ldap24.043.4.3-2build2vulnerable
Ubuntupython-ldap24.043.4.3-2build3vulnerable
Ubuntupython-ldap24.043.4.3-2ubuntu1vulnerable
Ubuntupython-ldap24.043.4.4-1vulnerable
Ubuntupython-ldap24.043.4.4-1build1vulnerable
Ubuntupython-ldap24.043.4.4-1ubuntu0.24.04.1fixed
Ubuntupython-ldap25.103.4.4-1build3vulnerable
Ubuntupython-ldap25.103.4.4-1ubuntu0.25.10.1fixed
Susepython-ldaplinux enterprise module for package hub 15 sp63.4.0-150400.3.3.1fixed
Opensusepython-ldapleap 15.63.4.0-150400.3.3.1fixed
Susepython-ldaplinux enterprise module for package hub 15 sp63.1.0-150100.3.5.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-ldapsourcesid3.4.5-1not yet assignedNot reported[1117858]
Debianpython-ldapsourceforky3.4.5-1not yet assignedNot reported[1117858]
Debianpython-ldapsourcetrixie3.4.4-1+deb13u1not yet assignedNot reported[1117858]
Debianpython-ldapsourcebookworm3.4.3-2+deb12u1not yet assignedNot reported[1117858]
Ubuntupython-ldapdebnoble3.4.4-1ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntupython-ldap-docdebnoble3.4.4-1ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntupython3-ldapdebnoble3.4.4-1ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntupython3-pyldapdebnoble3.4.4-1ubuntu0.24.04.1Not reportedNot reportedNot reported
Cpepython-ldapcpeNot reported3.4.5Not reportedNVD-CVE-2025-61911Not reported
Ubuntupython-ldapdebpro3.2.0-4ubuntu2.1+esm1Not reportedUSN-7828-1Not reported
Ubuntupython-ldapdeb22.043.2.0-4ubuntu7.2Not reportedUSN-7828-1Not reported
Ubuntupython-ldapdeb24.043.4.4-1ubuntu0.24.04.1Not reportedUSN-7828-1Not reported
Ubuntupython-ldapdeb25.103.4.4-1ubuntu0.25.10.1Not reportedUSN-7828-1Not reported
Susepython-ldaprpmlinux enterprise server 16.03.4.4-160000.3.1Not reportedSUSE-SU-2026:20933-1Not reported
Susepython-ldaprpmlinux enterprise server for sap applications 16.03.4.4-160000.3.1Not reportedSUSE-SU-2026:20933-1Not reported
Opensusepython-ldaprpmleap 16.03.4.4-160000.3.1Not reportedOPENSUSE-SU-2026:20421-1Not reported
Opensusepython-ldaprpmtumbleweed3.4.5-1.1Not reportedOPENSUSE-SU-2025:15637-1Not reported
Ubuntupython-ldapdebpro3.2.0-4ubuntu2.1+esm1Not reportedUBUNTU-CVE-2025-61911Not reported
Ubuntupython-ldapdeb22.043.2.0-4ubuntu7.2Not reportedUBUNTU-CVE-2025-61911Not reported
Ubuntupython-ldapdeb24.043.4.4-1ubuntu0.24.04.1Not reportedUBUNTU-CVE-2025-61911Not reported
Ubuntupython-ldapdeb25.103.4.4-1ubuntu0.25.10.1Not reportedUBUNTU-CVE-2025-61911Not reported
Susepython-ldaprpmlinux enterprise module for package hub 15 sp63.4.0-150400.3.3.1Not reportedSUSE-SU-2025:3714-1Not reported
Opensusepython-ldaprpmleap 15.63.4.0-150400.3.3.1Not reportedSUSE-SU-2025:3714-1Not reported
Susepython-ldaprpmlinux enterprise module for package hub 15 sp63.1.0-150100.3.5.1Not reportedSUSE-SU-2025:3695-1Not reported

[Debian bug #1117858]

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [python-ldap]

    Details (1)
    • 3.4.7-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 3.4.5-1.1

      Version impact unknown

      usn · python-ldap · opensuse · tumbleweed

  • Source package: [python-ldap]

    Details (1)
    • 3.4.7-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 3.4.5-1.1

      Version impact unknown

      usn · python-ldap · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Source package: [python-ldap]

    Details (2)
    • 3.4.3-2+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 3.4.3-2+deb12u1

      usn · python-ldap · debian · bookworm; usn · python-ldap · debian · 12

    • 3.4.3-2+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 3.4.3-2+deb12u1

      usn · python-ldap · debian · bookworm; usn · python-ldap · debian · 12

  • Source package: [python-ldap]

    Details (2)
    • 3.4.3-2+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 3.4.3-2+deb12u1

      usn · python-ldap · debian · bookworm; usn · python-ldap · debian · 12

    • 3.4.3-2+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 3.4.3-2+deb12u1

      usn · python-ldap · debian · bookworm; usn · python-ldap · debian · 12

  • Source package: [python-ldap]

    Details (2)
    • 3.4.3-2+deb12u1 · all · bookworm

      Fixed · Fixed: 3.4.3-2+deb12u1

      usn · python-ldap · debian · bookworm; usn · python-ldap · debian · 12

    • 3.4.3-2+deb12u1 · all · bookworm

      Fixed · Fixed: 3.4.3-2+deb12u1

      usn · python-ldap · debian · bookworm; usn · python-ldap · debian · 12

[Debian 13 (Trixie)]

  • Source package: [python-ldap]

    Details (2)
    • 3.4.4-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 3.4.4-1+deb13u1

      usn · python-ldap · debian · 13

    • 3.4.4-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 3.4.4-1+deb13u1

      usn · python-ldap · debian · 13

  • Source package: [python-ldap]

    Details (2)
    • 3.4.4-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 3.4.4-1+deb13u1

      usn · python-ldap · debian · 13

    • 3.4.4-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 3.4.4-1+deb13u1

      usn · python-ldap · debian · 13

  • Source package: [python-ldap]

    Details (2)
    • 3.4.4-1+deb13u1 · all · trixie

      Fixed · Fixed: 3.4.4-1+deb13u1

      usn · python-ldap · debian · 13

    • 3.4.4-1+deb13u1 · all · trixie

      Fixed · Fixed: 3.4.4-1+deb13u1

      usn · python-ldap · debian · 13

Observed:

References