CVE-2025-61912
Python vulnerability analysis and mitigation

Overview

CVE-2025-61912 is a vulnerability discovered in python-ldap versions 3.4.4 and earlier, disclosed on October 10, 2025. The vulnerability affects the ldap.dn.escapednchars() function, which incorrectly handles null character escaping in LDAP Distinguished Names (DNs). This security issue was reported by aradona91 and has been assigned a Low severity rating (Python LDAP Release, GitHub Advisory).

Technical details

The vulnerability exists in the ldap.dn.escapednchars() function where it incorrectly escapes \x00 by emitting a backslash followed by a literal NUL byte instead of using the RFC-4514 compliant hex form \00. The buggy implementation uses s.replace('\000', '\000'), which produces Python strings containing embedded NUL characters that cause python-ldap APIs to raise ValueError exceptions before any network I/O occurs (GitHub Advisory).

Impact

When applications use this function to build LDAP DN strings from untrusted input, a single NUL character in attacker-controlled input can reliably break client workflows, resulting in crashes, unhandled exceptions, stuck retries, or poison queue records. This effectively creates a client-side denial of service condition. The vulnerability affects applications that use ldap.dn.escapednchars() for handling user creation/rename tools, sync/ETL jobs, portals allowing self-service attributes, device onboarding, and batch imports (GitHub Advisory).

Mitigation and workarounds

The issue has been fixed in python-ldap version 3.4.5 by correcting the NUL escaping to use the RFC-4514 compliant hex form \00. The fix involves changing the escaping implementation to: s.replace('\x00', '\00'). Users should upgrade to version 3.4.5 or later to receive the security fix (Python LDAP 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