Advisory

DEBIAN-CVE-2025-61911

Also known as: CVE-2025-61911

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Dates

Published
2025-10-10 22:15 UTC
Modified
2026-10-23 17:47 UTC

Affected packages and fixes

python-ldap

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 3.4.3-2+deb12u1 (ecosystem)

Fixed versions

3.4.3-2+deb12u1

Fix

  • Fixed version 3.4.3-2+deb12u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python-ldap

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 3.4.4-1+deb13u1 (ecosystem)

Fixed versions

3.4.4-1+deb13u1

Fix

  • Fixed version 3.4.4-1+deb13u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python-ldap

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 3.4.5-1 (ecosystem)

Fixed versions

3.4.5-1

Fix

  • Fixed version 3.4.5-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences