Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. python-ldap
  4. ›
  5. CVE-2025-61911

CVE-2025-61911: python-ldap has sanitization bypass in ldap.filter.escape_filter_chars

October 10, 2025

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.

References

  • github.com/advisories/GHSA-r7r6-cc7p-4v5m
  • github.com/python-ldap/python-ldap
  • github.com/python-ldap/python-ldap/commit/3957526fb1852e84b90f423d9fef34c7af25b85a
  • github.com/python-ldap/python-ldap/releases/tag/python-ldap-3.4.5
  • github.com/python-ldap/python-ldap/security/advisories/GHSA-r7r6-cc7p-4v5m
  • nvd.nist.gov/vuln/detail/CVE-2025-61911

Code Behaviors & Features

Detect and mitigate CVE-2025-61911 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.4.5

Fixed versions

  • 3.4.5

Solution

Upgrade to version 3.4.5 or above.

Weakness

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

Source file

pypi/python-ldap/CVE-2025-61911.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 12 Oct 2025 00:19:55 +0000.