CVE-2025-61911
Python vulnerability analysis and mitigation

Overview

CVE-2025-61911 is a security vulnerability discovered in the python-ldap library affecting versions prior to 3.4.5. The vulnerability was disclosed on October 10, 2025, and involves a sanitization bypass in the ldap.filter.escapefilterchars method. The vulnerability specifically affects the library's input sanitization functionality when using escape_mode=1 configuration (GitHub Advisory).

Technical details

The vulnerability exists in the ldap.filter.escapefilterchars method when using escapemode=1 configuration. The method fails to properly validate input types, allowing attackers to bypass character escaping by supplying crafted list or dict objects as the assertionvalue parameter instead of the expected string type. While escapemode=0 (default) and escapemode=2 raise exceptions for invalid input types, escape_mode=1 processes the input without proper escaping (GitHub Advisory).

Impact

If an application relies on the vulnerable method to escape untrusted user input, attackers could potentially launch LDAP injection attacks to disclose or manipulate LDAP data that should be inaccessible to them. The impact is particularly relevant in applications that process JSON data, which commonly includes list and dict objects that might be forwarded unchecked to the vulnerable sanitization method (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in python-ldap version 3.4.5. The fix adds a type check at the start of the ldap.filter.escapefilterchars method to raise an exception when the supplied assertion_value parameter is not of type str. Users are advised to upgrade to version 3.4.5 or later to address this vulnerability (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61920HIGH7.5
  • PythonPython
  • python-authlib
NoYesOct 10, 2025
GHSA-g7f3-828f-7h7mMEDIUM6.5
  • PythonPython
  • authlib
NoYesOct 10, 2025
CVE-2025-61783MEDIUM6.3
  • PythonPython
  • social-auth-app-django
NoYesOct 09, 2025
CVE-2025-61912MEDIUM5.5
  • PythonPython
  • python-ldap
NoYesOct 10, 2025
CVE-2025-61911MEDIUM5.5
  • PythonPython
  • python-ldap
NoYesOct 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management