# CVE-2025-61911: python3-ldap: python-ldap is a lightweight directory access protocol (LDAP) client APIfor Python

CVE-2025-61911 is fixed in 4 products on 1 platform, first by python-ldap 3.0.0-1ubuntu0.2+esm1, released October 10, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-61911
- Priority: Routine
- CVSS: 6.5 (Medium)
- EPSS: 0.0032
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 10, 2025

## Description

python-ldap is a lightweight directory access protocol (LDAP) client APIfor Python. In versions prior to 3.4.5, the sanitization method`ldap.filter.escape_filter_chars` can be tricked to skip escaping ofspecial characters when a crafted `list` or `dict` is supplied as the`assertion_value` parameter, and the non-default `escape_mode=1` isconfigured. The method `ldap.filter.escape_filter_chars` supports 3different escaping modes. `escape_mode=0` (default) and `escape_mode=2`happen to raise exceptions when a `list` or `dict` object is supplied asthe `assertion_value` parameter. However, `escape_mode=1` computes withoutperforming adequate logic to ensure a fully escaped return value. If anapplication relies on the vulnerable method in the `python-ldap` library toescape untrusted user input, an attacker might be able to abuse thevulnerability to launch ldap injection attacks which could potentiallydisclose or manipulate ldap data meant to be inaccessible to them. Version3.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 thesupplied `assertion_value` parameter is not of type `str`.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-ldap Debian 12.15 (bookworm) | 3.4.3-2+deb12u1 | [DEBIAN-CVE-2025-61911](https://patchblox.com/security/data/fix/linux/debian-cve-2025-61911.md) | Oct 10, 2025 |
| Linux | python-ldap Debian 13.5 (trixie) | 3.4.4-1+deb13u1 | [DEBIAN-CVE-2025-61911](https://patchblox.com/security/data/fix/linux/debian-cve-2025-61911.md) | Oct 10, 2025 |
| Linux | python-ldap Debian 14 | 3.4.5-1 | [DEBIAN-CVE-2025-61911](https://patchblox.com/security/data/fix/linux/debian-cve-2025-61911.md) | Oct 10, 2025 |
| Linux | python-ldap Ubuntu 18.04.6 LTS (bionic) | 3.0.0-1ubuntu0.2+esm1 | [python-ldap 3.0.0-1ubuntu0.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-ldap-3.0.0-1ubuntu0.2-esm1.md) | Oct 10, 2025 |
| Linux | python-ldap opensuse-leap 15.6 | 3.4.0-150400.3.3.1 | [SUSE-SU-2025:3714-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-3714-1.md) | Oct 22, 2025 |
| Linux | python-ldap opensuse-leap 16.0 | 3.4.4-160000.3.1 | [OPENSUSE-SU-2026:20421-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20421-1.md) | Mar 25, 2026 |
| Linux | python-ldap sles 15.6 | 3.4.0-150400.3.3.1 | [SUSE-SU-2025:3714-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-3714-1.md) | Oct 22, 2025 |
| Linux | python-ldap sles 16.0 | 3.4.4-160000.3.1 | [SUSE-SU-2026:20933-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20933-1.md) | Mar 25, 2026 |
| Linux | python-pyldap Ubuntu 18.04.6 LTS (bionic) | 3.0.0-1ubuntu0.2+esm1 | [python-pyldap 3.0.0-1ubuntu0.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-pyldap-3.0.0-1ubuntu0.2-esm1.md) | Oct 10, 2025 |
| Linux | python3-ldap Ubuntu 18.04.6 LTS (bionic) | 3.0.0-1ubuntu0.2+esm1 | [python3-ldap 3.0.0-1ubuntu0.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-ldap-3.0.0-1ubuntu0.2-esm1.md) | Oct 10, 2025 |
| Linux | python3-ldap Ubuntu 20.04 LTS (focal) | 3.2.0-4ubuntu2.1+esm1 | [python3-ldap 3.2.0-4ubuntu2.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-ldap-3.2.0-4ubuntu2.1-esm1.md) | Oct 10, 2025 |
| Linux | python3-ldap Ubuntu 22.04.1 LTS (jammy) | 3.2.0-4ubuntu7.2 | [python3-ldap 3.2.0-4ubuntu7.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-ldap-3.2.0-4ubuntu7.2.md) | Oct 10, 2025 |
| Linux | python3-ldap Ubuntu 24.04.5 LTS (noble) | 3.4.4-1ubuntu0.24.04.1 | [python3-ldap 3.4.4-1ubuntu0.24.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-ldap-3.4.4-1ubuntu0.24.04.1.md) | Oct 10, 2025 |
| Linux | python3-ldap Ubuntu 25.04 (plucky) | 3.4.4-1ubuntu0.25.04.1 | [python3-ldap 3.4.4-1ubuntu0.25.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-python3-ldap-3.4.4-1ubuntu0.25.04.1.md) | Jan 16, 2026 |
| Linux | python3-ldap Ubuntu 25.10 (questing) | 3.4.4-1ubuntu0.25.10.1 | [python3-ldap 3.4.4-1ubuntu0.25.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-python3-ldap-3.4.4-1ubuntu0.25.10.1.md) | Oct 10, 2025 |
| Linux | python3-pyldap Ubuntu 18.04.6 LTS (bionic) | 3.0.0-1ubuntu0.2+esm1 | [python3-pyldap 3.0.0-1ubuntu0.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-pyldap-3.0.0-1ubuntu0.2-esm1.md) | Oct 10, 2025 |
| Linux | python3-pyldap Ubuntu 20.04 LTS (focal) | 3.2.0-4ubuntu2.1+esm1 | [python3-pyldap 3.2.0-4ubuntu2.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-pyldap-3.2.0-4ubuntu2.1-esm1.md) | Oct 10, 2025 |
| Linux | python3-pyldap Ubuntu 22.04.1 LTS (jammy) | 3.2.0-4ubuntu7.2 | [python3-pyldap 3.2.0-4ubuntu7.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-pyldap-3.2.0-4ubuntu7.2.md) | Oct 10, 2025 |
| Linux | python3-pyldap Ubuntu 24.04.5 LTS (noble) | 3.4.4-1ubuntu0.24.04.1 | [python3-pyldap 3.4.4-1ubuntu0.24.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-pyldap-3.4.4-1ubuntu0.24.04.1.md) | Oct 10, 2025 |
| Linux | python3-pyldap Ubuntu 25.04 (plucky) | 3.4.4-1ubuntu0.25.04.1 | [python3-pyldap 3.4.4-1ubuntu0.25.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-python3-pyldap-3.4.4-1ubuntu0.25.04.1.md) | Jan 16, 2026 |
| Linux | python3-pyldap Ubuntu 25.10 (questing) | 3.4.4-1ubuntu0.25.10.1 | [python3-pyldap 3.4.4-1ubuntu0.25.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-python3-pyldap-3.4.4-1ubuntu0.25.10.1.md) | Oct 10, 2025 |

---

Data as of 2026-11-10T07:50:38Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
