6.5

CVE-2025-61911: python-ldap

CVSS: 6.5v3.1MediumAnalyzed
AliasesGHSA-r7r6-cc7p-4v5mPYSEC-2026-1847UBUNTU-CVE-2025-61911
Published 10-10-2025Last modified 14-10-2025

Vulnerability summary

CVE-2025-61911 is a medium (CVSS 6.5) vulnerability in python-ldap. EPSS estimates a 0.32% chance of exploitation in the next 30 days, higher than 23.7% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
36/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.32%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 6 · Related 8

Timeline

  1. 10-10-2025
    PublishedVulnerability first disclosed.
  2. 14-10-2025
    Last modifiedVulnerability information updated.

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

CVSS metrics

8 scores · 6 sources · 2 versions

EPSS trend

Probability

0.32%

Chance of exploitation in the next 30 days

Percentile

24%

Versus all other CVEs

30-day change

0.00 pp

From 0.32% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.32%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Python Ldap

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Chainguard1 product
  • awx< 24.6.1-r18
Debian1 product
  • python-ldap< 3.4.3-2+deb12u1 | < 3.4.4-1+deb13u1 | < 3.4.5-1
PyPI1 product
  • python-ldap< 3.4.5
Python-ldap1 product
Ubuntu1 product
  • python-ldap< 2.4.22-0.1ubuntu0.1~esm1 | < 3.0.0-1ubuntu0.2+esm1 | < 3.2.0-4ubuntu2.1+esm1 | < 3.2.0-4ubuntu7.2 | < 3.4.4-1ubuntu0.24.04.1 | < 3.4.4-1ubuntu0.25.10.1

5 vendors · 5 products

References

13 links
Show all 13 references