🔍 CVE-2026-61816

7.5
CVSS Score
HIGH
2026-09-24
2026-09-30 17:32
✅ 완료

🇰🇷 한글 설명

zbateson/mail-mime-parser 라이브러리에서 발생하는 제어되지 않은 리소스 소비 및 알고리즘 복잡도 취약점입니다. 특정 버전에서 조작된 이메일을 파싱할 때 CPU와 메모리를 과도하게 사용하여 서비스 거부(DoS) 상태를 유발할 수 있습니다.

💡 쉬운 설명

악의적으로 만들어진 이메일을 읽으려고 하면 컴퓨터의 메모리와 CPU를 순식간에 모두 써버려 시스템이 멈추게 만드는 취약점입니다. 아주 작은 크기의 이메일로도 서버를 마비시킬 수 있습니다.

🇺🇸 원문 (English)

zbateson/mail-mime-parser is a mail mime parser alternative to PHP's imap* functions and Pear libraries for reading messages in Internet Message Format RFC 822. Starting in version 2.0.0 and prior to version 3.0.6 and 4.0.2, an uncontrolled resource consumption / algorithmic complexity vulnerability (CWE-400) affects any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does **not** bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first `getAllParts()` or content read. This is fxed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) These costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.

📍 영향받는 시스템

zbateson/mail-mime-parser 2.0.0 이상 ~ 3.0.6 미만 및 4.0.2 미만 버전

⚔️ 공격 벡터

조작된 구조를 가진 2MB 미만의 이메일 메시지를 라이브러리를 통해 파싱하도록 유도

🛡️ 대응 방법

라이브러리를 3.0.6 또는 4.0.2 이상의 최신 버전으로 업그레이드하십시오.

🔧 검증 코드

출력된 버전이 3.0.6 또는 4.0.2보다 낮은지 확인하여 취약 여부를 판단합니다.

Shell / Script
composer show zbateson/mail-mime-parser | grep 'versions'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP