CVE & CISA-KEV Catalog

CVE-2025-61911

MEDIUM
6.5
CVSS v3
NVD

Description

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`.

How to fix

Remediation Available
python-ldapDebian
Fixed in:3.4.3-2+deb12u1CVE-2025-61911
Fixed in:3.4.4-1+deb13u1CVE-2025-61911
Fixed in:3.4.5-1CVE-2025-61911
python-ldapUbuntu
Fixed in:2.4.22-0.1ubuntu0.1~esm1USN-7828-1
Fixed in:3.0.0-1ubuntu0.2+esm1USN-7828-1
Fixed in:3.2.0-4ubuntu2.1+esm1USN-7828-1
Fixed in:3.2.0-4ubuntu7.2USN-7828-1
Fixed in:3.4.4-1ubuntu0.24.04.1USN-7828-1
Fixed in:3.4.4-1ubuntu0.25.10.1USN-7828-1
python3-ldapUbuntu
Fixed in:3.0.0-1ubuntu0.2+esm1USN-7828-1
Fixed in:3.2.0-4ubuntu2.1+esm1USN-7828-1
Fixed in:3.2.0-4ubuntu7.2USN-7828-1
Fixed in:3.4.4-1ubuntu0.24.04.1USN-7828-1
Fixed in:3.4.4-1ubuntu0.25.10.1USN-7828-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploit Intelligence

0.29%probability of exploitation in 30 days
21stpercentile

Low risk: more likely to be exploited than 21% of all known CVEs.

References

Exploit1
Release Notes1
Embed a live status badge for CVE-2025-61911
CVE-2025-61911 severity badge

Markdown

[![CVE-2025-61911](https://tridentstack.com/cve/badge/CVE-2025-61911.svg)](https://tridentstack.com/cve/CVE-2025-61911)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-61911"><img src="https://tridentstack.com/cve/badge/CVE-2025-61911.svg" alt="CVE-2025-61911"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-12-04.