🔍 CVE-2026-115774

4.9
CVSS Score
MEDIUM
2026-10-23
2026-10-29 15:17
✅ 완료

🇰🇷 한글 설명

Twisted 26.10.0rc1 이전 버전의 twisted.mail.imap4.IMAP4Server에서, 인증된 사용자가 선택된 메일함 상태에서 음수 리터럴 크기를 포함한 SEARCH 명령을 보내면 parseNestedParens 파서가 무한 루프에 빠집니다. 이로 인해 단일 스레드 리액터가 멈추어 같은 프로세스의 다른 IMAP, SMTP, POP3 서비스도 재시작 전까지 중단됩니다.

💡 쉬운 설명

로그인한 사용자가 특정 검색 명령을 보내면 메일 서버가 멈춰 버릴 수 있습니다. 같은 서버에서 돌아가는 다른 메일 서비스도 함께 멈추므로 재시작 전까지 메일 송수신이 모두 중단됩니다.

🇺🇸 원문 (English)

Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 26.10.0rc1, twisted.mail.imap4.IMAP4Server reaches twisted.mail.imap4.parseNestedParens with a negative literal size in an authenticated SEARCH command after the client enters the selected mailbox state. The negative size moves the parser cursor below zero, and Python's negative indexing prevents the synchronous scanning loop from terminating. The loop freezes the single-threaded reactor, stopping other IMAP connections and any SMTP or POP3 services hosted in the same process until restart. This issue is fixed in version 26.10.0rc1.

📍 영향받는 시스템

Twisted 26.10.0rc1 미만 버전을 사용하는 IMAP 서버(twisted.mail 모듈 사용 애플리케이션)

⚔️ 공격 벡터

인증된 사용자가 메일함을 선택한 뒤 음수 리터럴 크기를 포함한 SEARCH 명령을 전송하여 서버를 무한 루프에 빠뜨림

🛡️ 대응 방법

Twisted를 26.10.0rc1 이상으로 업그레이드 (pip install --upgrade 'twisted>=26.10.0rc1')

🔧 검증 코드

출력된 Version 값이 26.10.0rc1 미만이면 취약하므로 업그레이드가 필요하고, 26.10.0rc1 이상이면 패치된 상태입니다.

Shell / Script
pip show twisted 2>/dev/null | grep -i version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python