UBUNTU-CVE-2025-61911

Source
https://ubuntu.com/security/CVE-2025-61911
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61911.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2025-61911
Upstream
Downstream
Related
Published
2025-10-10T22:15:00Z
Modified
2026-02-02T03:51:57.820252Z
Severity
  • 5.5 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P CVSS Calculator
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:22.04:LTS
python-ldap

Package

Name
python-ldap
Purl
pkg:deb/ubuntu/python-ldap@3.2.0-4ubuntu7.2?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2.0-4ubuntu7.2

Affected versions

3.*
3.2.0-4ubuntu5
3.2.0-4ubuntu6
3.2.0-4ubuntu7
3.2.0-4ubuntu7.1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "python3-ldap",
            "binary_version": "3.2.0-4ubuntu7.2"
        },
        {
            "binary_name": "python3-pyldap",
            "binary_version": "3.2.0-4ubuntu7.2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61911.json"
Ubuntu:24.04:LTS
python-ldap

Package

Name
python-ldap
Purl
pkg:deb/ubuntu/python-ldap@3.4.4-1ubuntu0.24.04.1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.4.4-1ubuntu0.24.04.1

Affected versions

3.*
3.4.3-2build2
3.4.3-2build3
3.4.3-2ubuntu1
3.4.4-1
3.4.4-1build1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "python3-ldap",
            "binary_version": "3.4.4-1ubuntu0.24.04.1"
        },
        {
            "binary_name": "python3-pyldap",
            "binary_version": "3.4.4-1ubuntu0.24.04.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61911.json"
Ubuntu:25.10
python-ldap

Package

Name
python-ldap
Purl
pkg:deb/ubuntu/python-ldap@3.4.4-1ubuntu0.25.10.1?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.4.4-1ubuntu0.25.10.1

Affected versions

3.*
3.4.4-1build3

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "python3-ldap",
            "binary_version": "3.4.4-1ubuntu0.25.10.1"
        },
        {
            "binary_name": "python3-pyldap",
            "binary_version": "3.4.4-1ubuntu0.25.10.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61911.json"
Ubuntu:Pro:16.04:LTS
python-ldap

Package

Name
python-ldap
Purl
pkg:deb/ubuntu/python-ldap@2.4.22-0.1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.22-0.1ubuntu0.1~esm1

Affected versions

2.*
2.4.20-0.1
2.4.22-0.1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "python-ldap",
            "binary_version": "2.4.22-0.1ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61911.json"
Ubuntu:Pro:18.04:LTS
python-ldap

Package

Name
python-ldap
Purl
pkg:deb/ubuntu/python-ldap@3.0.0-1ubuntu0.2+esm1?arch=source&distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.0-1ubuntu0.2+esm1

Affected versions

2.*
2.4.41-1
2.5.2-1
3.*
3.0.0~b4-1
3.0.0-1
3.0.0-1ubuntu0.1
3.0.0-1ubuntu0.2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "python-ldap",
            "binary_version": "3.0.0-1ubuntu0.2+esm1"
        },
        {
            "binary_name": "python-pyldap",
            "binary_version": "3.0.0-1ubuntu0.2+esm1"
        },
        {
            "binary_name": "python3-ldap",
            "binary_version": "3.0.0-1ubuntu0.2+esm1"
        },
        {
            "binary_name": "python3-pyldap",
            "binary_version": "3.0.0-1ubuntu0.2+esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61911.json"
Ubuntu:Pro:20.04:LTS
python-ldap

Package

Name
python-ldap
Purl
pkg:deb/ubuntu/python-ldap@3.2.0-4ubuntu2.1+esm1?arch=source&distro=esm-infra/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2.0-4ubuntu2.1+esm1

Affected versions

3.*
3.1.0-2build1
3.1.0-2build2
3.2.0-3
3.2.0-3ubuntu1
3.2.0-3ubuntu2
3.2.0-3ubuntu3
3.2.0-4ubuntu2
3.2.0-4ubuntu2.1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "python3-ldap",
            "binary_version": "3.2.0-4ubuntu2.1+esm1"
        },
        {
            "binary_name": "python3-pyldap",
            "binary_version": "3.2.0-4ubuntu2.1+esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-61911.json"