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

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

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.30%probability of exploitation in 30 days
22ndpercentile

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

References

Exploit1
Release Notes1

Related Vulnerabilities

Other CWE-75 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2021-22911Critical9.895%--
CVE-2024-0801High7.542%--
CVE-2021-39174High8.83.9%-Fix
CVE-2023-40743Critical9.82.6%-Fix
CVE-2026-29042Critical9.82.3%-Fix
CVE-2021-22910Critical9.82.3%-Fix

Common questions

How do I fix CVE-2025-61911?

Published advisories record a fix for 3 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2025-61911 being actively exploited?

Not that we know of. CVE-2025-61911 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.30% is the estimated probability that it will be exploited in the next 30 days. That is higher than 22% of all scored CVEs.

How severe is CVE-2025-61911?

CVE-2025-61911 has a CVSS v3 base score of 6.5, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2025-61911 affect?

Published advisories record a fix for python-ldap (Debian), python-ldap (Ubuntu), python3-ldap (Ubuntu). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

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.

See how it worksStart freeThis CVE lookup is free and always will be.

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.