Advisory record · GHSA-r7r6-cc7p-4v5m

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

CVSS 5.5 MediumEPSS 0.0032 · 25th percentile

Published by the GitHub Advisory Database at 10 Oct 2025, 22:51 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
python-ldapPyPI<3.4.53.4.5
Identifiers
GHSA-r7r6-cc7p-4v5m · CVE-2025-61911 · PYSEC-2026-1847
Weakness (CWE)
CWE-75 · CWE-843
Published
10 Oct 2025
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The python-ldap package before 3.4.5 has a flaw in ldap.filter.escape_filter_chars: when escape_mode=1 is set (a non-default option) and a list or dict is passed as assertion_value, special characters may not be escaped. An attacker who controls that input in an application relying on this function could perform LDAP injection to read or modify directory data they should not access. Upgrade to python-ldap 3.4.5 or later. The source gives no other workaround beyond avoiding escape_mode=1 with untrusted input.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.5 Medium 4.0 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0032, the 25th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:34 UTC First seen by agentprime
  2. 31 Oct 2026, 14:34 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.