UBUNTU-CVE-2025-61911 (CVE-2025-61911)
Vulnerability from osv_ubuntu – Published: 2025-10-10 22:15 – Updated: 2026-11-24 10:18 – Source websitepython-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.
| Ecosystem | Package | Version |
|---|---|---|
| Ubuntu:Pro:16.04:LTS |
python-ldap
pkg:deb/ubuntu/python-ldap@2.4.22-0.1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial
|
Affected: < 2.4.22-0.1ubuntu0.1~esm1 (ecosystem)
2.4.20-0.12.4.22-0.1
|
| Ubuntu:Pro:18.04:LTS |
python-ldap
pkg:deb/ubuntu/python-ldap@3.0.0-1ubuntu0.2+esm1?arch=source&distro=esm-infra/bionic
|
Affected: < 3.0.0-1ubuntu0.2+esm1 (ecosystem)
2.4.41-12.5.2-13.0.0~b4-13.0.0-13.0.0-1ubuntu0.13.0.0-1ubuntu0.2
|
| Ubuntu:Pro:20.04:LTS |
python-ldap
pkg:deb/ubuntu/python-ldap@3.2.0-4ubuntu2.1+esm1?arch=source&distro=esm-infra/focal
|
Affected: < 3.2.0-4ubuntu2.1+esm1 (ecosystem)
3.1.0-2build13.1.0-2build23.2.0-33.2.0-3ubuntu13.2.0-3ubuntu23.2.0-3ubuntu33.2.0-4ubuntu23.2.0-4ubuntu2.1
|
| Ubuntu:22.04:LTS |
python-ldap
pkg:deb/ubuntu/python-ldap@3.2.0-4ubuntu7.2?arch=source&distro=jammy
|
Affected: < 3.2.0-4ubuntu7.2 (ecosystem)
3.2.0-4ubuntu53.2.0-4ubuntu63.2.0-4ubuntu73.2.0-4ubuntu7.1
|
| Ubuntu:24.04:LTS |
python-ldap
pkg:deb/ubuntu/python-ldap@3.4.4-1ubuntu0.24.04.1?arch=source&distro=noble
|
Affected: < 3.4.4-1ubuntu0.24.04.1 (ecosystem)
3.4.3-2build23.4.3-2build33.4.3-2ubuntu13.4.4-13.4.4-1build1
|
| Ubuntu:25.10 |
python-ldap
pkg:deb/ubuntu/python-ldap@3.4.4-1ubuntu0.25.10.1?arch=source&distro=questing
|
Affected: < 3.4.4-1ubuntu0.25.10.1 (ecosystem)
3.4.4-1build3
|
{
"affected": [
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "python-ldap",
"purl": "pkg:deb/ubuntu/python-ldap@2.4.22-0.1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.22-0.1ubuntu0.1~esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.20-0.1",
"2.4.22-0.1"
]
},
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "python-ldap",
"purl": "pkg:deb/ubuntu/python-ldap@3.0.0-1ubuntu0.2+esm1?arch=source\u0026distro=esm-infra/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.0-1ubuntu0.2+esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.41-1",
"2.5.2-1",
"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": "python3-ldap",
"binary_version": "3.2.0-4ubuntu2.1+esm1"
},
{
"binary_name": "python3-pyldap",
"binary_version": "3.2.0-4ubuntu2.1+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "python-ldap",
"purl": "pkg:deb/ubuntu/python-ldap@3.2.0-4ubuntu2.1+esm1?arch=source\u0026distro=esm-infra/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.2.0-4ubuntu2.1+esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"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": "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"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "python-ldap",
"purl": "pkg:deb/ubuntu/python-ldap@3.2.0-4ubuntu7.2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.2.0-4ubuntu7.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"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.4.4-1ubuntu0.24.04.1"
},
{
"binary_name": "python3-pyldap",
"binary_version": "3.4.4-1ubuntu0.24.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "python-ldap",
"purl": "pkg:deb/ubuntu/python-ldap@3.4.4-1ubuntu0.24.04.1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.4.4-1ubuntu0.24.04.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"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.25.10.1"
},
{
"binary_name": "python3-pyldap",
"binary_version": "3.4.4-1ubuntu0.25.10.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "python-ldap",
"purl": "pkg:deb/ubuntu/python-ldap@3.4.4-1ubuntu0.25.10.1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.4.4-1ubuntu0.25.10.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.4.4-1build3"
]
}
],
"aliases": [],
"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`.",
"id": "UBUNTU-CVE-2025-61911",
"modified": "2026-11-24T10:18:55Z",
"published": "2025-10-10T22:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2025-61911"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2025-61911"
},
{
"type": "REPORT",
"url": "https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r7r6-cc7p-4v5m"
},
{
"type": "REPORT",
"url": "https://github.com/python-ldap/python-ldap/commit/3957526fb1852e84b90f423d9fef34c7af25b85a"
},
{
"type": "REPORT",
"url": "https://github.com/python-ldap/python-ldap/commit/464fddacd63092d6e01c62a38316a713c30ca98a"
},
{
"type": "REPORT",
"url": "https://github.com/python-ldap/python-ldap/commit/3957526fb1852e84b90f423d9fef34c7af25b85a"
},
{
"type": "REPORT",
"url": "https://github.com/python-ldap/python-ldap/releases/tag/python-ldap-3.4.5"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-7828-1"
}
],
"related": [
"USN-7828-1"
],
"schema_version": "1.9.2",
"severity": [
{
"score": "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",
"source": "CNA",
"type": "CVSS_V4"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
"source": "NVD",
"type": "CVSS_V3"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2025-61911"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.