Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-61911

published medium CVSS 4.0 · 5.5

python-ldap has sanitization bypass in ldap.filter.escape_filter_chars

Published
10 Oct 2025, 22:02:15 UTC
Updated
14 Oct 2025, 14:57:34 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
python-ldap — python-ldap< 3.4.5 Affected Not stated GitHub_M
Amazon Linux AL2 Release evaluationALAS2-2025-3083 Fixed Not stated Amazon Linux assessment
Ubuntu bionic python-ldap Advisory build 3.0.0-1ubuntu0.2+esm1 USN-7828-1
Alpine Linux edge py3-ldap Fixed 3.4.5-r0 Package fix record
SUSE / openSUSE SLE-16 python313-ldapaarch64 Advisory build 3.4.4-160000.3.1 SUSE-SU-2026:20933-1
Amazon Linux AL2 python-ldapaarch64 Listed in advisory Not stated ALAS2-2025-3083
Ubuntu focal python-ldap Advisory build 3.2.0-4ubuntu2.1+esm1 USN-7828-1
Ubuntu jammy python-ldap Advisory build 3.2.0-4ubuntu7.2 USN-7828-1
Show 37 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu noble python-ldap Advisory build 3.4.4-1ubuntu0.24.04.1 USN-7828-1
Ubuntu questing python-ldap Advisory build 3.4.4-1ubuntu0.25.10.1 USN-7828-1
Ubuntu xenial python-ldap Advisory build 2.4.22-0.1ubuntu0.1~esm1 USN-7828-1
Alpine Linux v3.24 py3-ldap Fixed 3.4.5-r0 Package fix record
SUSE / openSUSE SLE-16 python313-ldapppc64le Advisory build 3.4.4-160000.3.1 SUSE-SU-2026:20933-1
SUSE / openSUSE SLE-16 python313-ldaps390x Advisory build 3.4.4-160000.3.1 SUSE-SU-2026:20933-1
SUSE / openSUSE SLE-16 python313-ldapx86_64 Advisory build 3.4.4-160000.3.1 SUSE-SU-2026:20933-1
SUSE / openSUSE openSUSE-Leap-16.0 python313-ldapaarch64 Advisory build 3.4.4-160000.3.1 OPENSUSE-SU-2026:20421-1
SUSE / openSUSE openSUSE-Leap-16.0 python313-ldapppc64le Advisory build 3.4.4-160000.3.1 OPENSUSE-SU-2026:20421-1
SUSE / openSUSE openSUSE-Leap-16.0 python313-ldaps390x Advisory build 3.4.4-160000.3.1 OPENSUSE-SU-2026:20421-1
SUSE / openSUSE openSUSE-Leap-16.0 python313-ldapx86_64 Advisory build 3.4.4-160000.3.1 OPENSUSE-SU-2026:20421-1
SUSE / openSUSE openSUSE-Tumbleweed python311-ldapaarch64 Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python311-ldapppc64le Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python311-ldaps390x Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python311-ldapx86_64 Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python312-ldapaarch64 Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python312-ldapppc64le Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python312-ldaps390x Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python312-ldapx86_64 Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python313-ldapaarch64 Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python313-ldapppc64le Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python313-ldaps390x Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
SUSE / openSUSE openSUSE-Tumbleweed python313-ldapx86_64 Advisory build 3.4.5-1.1 OPENSUSE-SU-2025:15637-1
Ubuntu bionic python-pyldap Advisory build 3.0.0-1ubuntu0.2+esm1 USN-7828-1
Ubuntu bionic python3-ldap Advisory build 3.0.0-1ubuntu0.2+esm1 USN-7828-1
Ubuntu bionic python3-pyldap Advisory build 3.0.0-1ubuntu0.2+esm1 USN-7828-1
Ubuntu focal python3-ldap Advisory build 3.2.0-4ubuntu2.1+esm1 USN-7828-1
Ubuntu focal python3-pyldap Advisory build 3.2.0-4ubuntu2.1+esm1 USN-7828-1
Ubuntu jammy python3-ldap Advisory build 3.2.0-4ubuntu7.2 USN-7828-1
Ubuntu jammy python3-pyldap Advisory build 3.2.0-4ubuntu7.2 USN-7828-1
Ubuntu noble python3-ldap Advisory build 3.4.4-1ubuntu0.24.04.1 USN-7828-1
Ubuntu noble python3-pyldap Advisory build 3.4.4-1ubuntu0.24.04.1 USN-7828-1
Ubuntu questing python3-ldap Advisory build 3.4.4-1ubuntu0.25.10.1 USN-7828-1
Ubuntu questing python3-pyldap Advisory build 3.4.4-1ubuntu0.25.10.1 USN-7828-1
Amazon Linux AL2 python-ldapi686 Listed in advisory Not stated ALAS2-2025-3083
Amazon Linux AL2 python-ldapsrc Listed in advisory Not stated ALAS2-2025-3083
Amazon Linux AL2 python-ldapx86_64 Listed in advisory Not stated ALAS2-2025-3083

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

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

12

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
4.0
Base score
5.5 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
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

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
python-ldap python-ldap < 3.4.5 (affected) GitHub_M · cna

Weaknesses

2
  • CWE-75 CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) (GitHub_M · cna)
  • CWE-843 CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') (GitHub_M · cna)

References

3

Provider assertions

2

GitHub_M · cna

python-ldap has sanitization bypass in ldap.filter.escape_filter_chars

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.1
Searchable
yes
Content hash
c7e5be72d24d3a78fc0edc28d19c8a2acb80282c4902725dc1043322eb09933e
Ingested
23 Sep 2026, 08:55:13 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected