# CVE-2025-61912: PYSEC-2026-1846 - python-ldap is Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination

Source: https://junglewise.ai/threats/cve-2025-61912-python-ldap-is-vulnerable-to-improper-encoding-or-escaping-of  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2025-61912 · Severity: medium · CVSS 4 · Published 2026-07-07

python-ldap is Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination

Technologies: [python-ldap (PyPI)](https://junglewise.ai/threats/technologies/python-ldap). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-61912 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-61912 being exploited in the wild.

**How severe is CVE-2025-61912?** Medium severity, with a CVSS score of 4, published 7 July 2026.

**Which products and versions are affected?** python-ldap (PyPI) ECOSYSTEM:introduced=0,fixed=3.4.5.

**Is there a fix for CVE-2025-61912?** Yes. python-ldap (PyPI): upgrade to 3.4.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-61912?** Check whether you run python-ldap (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- python-ldap (PyPI): upgrade to 3.4.5 or later

  ```sh
  pip install "python-ldap>=3.4.5"
  ```


## Affected products

- python-ldap (PyPI) ECOSYSTEM:introduced=0,fixed=3.4.5

## Identifiers

- CVE-2025-61912
- GHSA-p34h-wq7j-h5v6
- PYSEC-2026-1846

## Related threats

- [PYSEC-2026-1847 - python-ldap has sanitization bypass in ldap.filter.escape_filter_chars](https://junglewise.ai/threats/cve-2025-61911-python-ldap-has-sanitization-bypass-in-ldap-filter-escape-filter)
- [PYSEC-2026-912 - Denial of Service in python-ldap](https://junglewise.ai/threats/cve-2021-46823-denial-of-service-in-python-ldap)
