🔍 CVE-2026-40193

8.2
CVSS Score
HIGH
2026-04-16
2026-10-26 21:10
✅ 완료

🇰🇷 한글 설명

maddy 메일 서버의 auth.ldap 모듈에서 사용자 입력값이 적절한 이스케이프 처리 없이 LDAP 검색 필터에 삽입되는 LDAP 인젝션 취약점이 발견되었습니다. 공격자는 이를 통해 타인으로 신분을 위장하거나 LDAP 디렉터리 정보를 열람하고 속성 값을 추출할 수 있습니다. 이 문제는 0.9.3 버전에서 수정되었습니다.

💡 쉬운 설명

메일 서버 로그인 과정에서 아이디 칸에 특수 문자를 섞어 넣으면 서버의 내부 데이터베이스를 조작할 수 있는 보안 약점입니다. 이를 통해 다른 사람의 계정으로 로그인하거나 서버에 저장된 정보를 몰래 빼낼 수 있습니다.

🇺🇸 원문 (English)

maddy is a composable, all-in-one mail server. Versions prior to 0.9.3 contain an LDAP injection vulnerability in the auth.ldap module where user-supplied usernames are interpolated into LDAP search filters and DN strings via strings.ReplaceAll() without any LDAP filter escaping, despite the go-ldap/ldap/v3 library's ldap.EscapeFilter() function being available in the same import. This affects three code paths: the Lookup() filter, the AuthPlain() DN template, and the AuthPlain() filter. An attacker with network access to the SMTP submission or IMAP interface can inject arbitrary LDAP filter expressions through the username field in AUTH PLAIN or LOGIN commands. This enables identity spoofing by manipulating filter results to authenticate as another user, LDAP directory enumeration via wildcard filters, and blind extraction of LDAP attribute values using authentication responses as a boolean oracle or via timing side-channels between the two distinct failure paths. This issue has been fixed in version 0.9.3.

📍 영향받는 시스템

maddy mail server versions prior to 0.9.3

⚔️ 공격 벡터

SMTP 또는 IMAP 인터페이스의 AUTH PLAIN/LOGIN 명령 시 username 필드에 악의적인 LDAP 필터 구문 주입

🛡️ 대응 방법

maddy 메일 서버를 0.9.3 버전 이상으로 업데이트하십시오.

🔧 검증 코드

출력 결과가 VULNERABLE이면 취약한 버전이며, SAFE이면 안전한 버전입니다.

Shell / Script
maddy --version 2>/dev/null | grep -E '0\.[0-9]\.[0-9]' | awk '{print $2}' | awk -F. '{if ($1 == 0 && $2 < 9 || ($2 == 0 && $3 < 3)) print "VULNERABLE"; else print "SAFE"}'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM Verify Identity Access