🔍 CVE-2025-61912

5.3
CVSS Score
MEDIUM
2025-10-10
2026-10-19 16:10
✅ 완료

🇰🇷 한글 설명

python-ldap 3.4.5 미만 버전에서 ldap.dn.escape_dn_chars() 함수가 NUL(\) 문자를 RFC-4514 표준인 \00 형식이 아닌 백슬래시와 NUL 바이트로 잘못 이스케이프합니다. 이로 인해 신뢰할 수 없는 입력을 사용하여 DN을 구성하는 애플리케이션은 LDAP 서버 요청 전 클라이언트 측에서 서비스 거부(DoS) 상태에 빠질 수 있습니다.

💡 쉬운 설명

특정 프로그램이 데이터를 처리할 때 규칙에 맞지 않는 방식으로 글자를 변환하여 오류를 일으킵니다. 공격자가 특수 문자를 입력하면 프로그램이 작동을 멈추게 만들 수 있습니다.

🇺🇸 원문 (English)

python-ldap is a lightweight directory access protocol (LDAP) client API for Python. In versions prior to 3.4.5, ldap.dn.escape_dn_chars() escapes \x00 incorrectly by emitting a backslash followed by a literal NUL byte instead of the RFC-4514 hex form \00. Any application that uses this helper to construct DNs from untrusted input can be made to consistently fail before a request is sent to the LDAP server (e.g., AD), resulting in a client-side denial of service. Version 3.4.5 contains a patch for the issue.

📍 영향받는 시스템

python-ldap 3.4.5 미만 모든 버전

⚔️ 공격 벡터

신뢰할 수 없는 사용자 입력값을 통해 DN(Distinguished Name)을 생성할 때 NUL 문자를 포함시켜 클라이언트 측 오류 유도

🛡️ 대응 방법

python-ldap 버전을 3.4.5 이상으로 업데이트

🔧 검증 코드

출력된 버전 번호가 3.4.5보다 낮으면 취약한 상태입니다.

Shell / Script
pip show python-ldap | grep Version

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L