🔍 CVE-2026-61815

7.2
CVSS Score
HIGH
2026-09-24
2026-10-05 16:17
✅ 완료

🇰🇷 한글 설명

zbateson/mail-mime-parser 라이브러리에서 공격자가 조작한 첨부 파일 이름에 CRLF(줄바꿈 문자)를 포함할 경우 헤더 주입 취약점이 발생합니다. 이 취약점을 통해 공격자는 Bcc 헤더 등을 위조하여 이메일 내용을 탈취하거나 메시지 구조를 조작할 수 있습니다.

💡 쉬운 설명

이메일 첨부 파일 이름에 몰래 줄바꿈 문자를 넣어 이메일의 명령어를 조작하는 공격입니다. 이를 통해 공격자는 몰래 이메일 복사본을 다른 곳으로 보내도록 만들 수 있습니다.

🇺🇸 원문 (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. Prior to version 3.0.6 and 4.0.2, CRLF (carriage-return / line-feed) header injection (CWE-93) affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the `Content-Type` and `Content-Disposition` header values without stripping CR/LF, so a filename containing `\r\n` serializes as one or more additional, attacker-controlled header lines (for example a forged `Bcc:` that silently exfiltrates a copy of the outgoing message). The untrusted filename can come directly from parsed inbound mail, so no local construction is required — an application that re-attaches or re-sends a parsed filename is exposed. Versions 3.0.6 and 4.0.2 patch the issue. Versions 1.x and 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. If upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).

📍 영향받는 시스템

zbateson/mail-mime-parser 3.0.6 및 4.0.2 미만 버전 (1.x, 2.x 포함)

⚔️ 공격 벡터

공격자가 조작된 CRLF( ) 문자가 포함된 파일 이름을 통해 MIME 헤더를 주입함

🛡️ 대응 방법

라이브러리를 3.0.6 또는 4.0.2 이상의 버전으로 업데이트하거나, 파일 이름에서 CRLF 문자를 제거하는 필터링 로직을 적용함

🔧 검증 코드

출력된 버전이 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:C/C:L/I:L/A:N

💻 영향받는 소프트웨어

PHP