🔍 CVE-2016-10045

9.8
CVSS Score
CRITICAL
2016-12-30
2026-05-06 22:30
✅ 완료

🇰🇷 한글 설명

PHPMailer 5.2.20 이전 버전의 isMail 함수에서 escapeshellarg와 PHP의 mail 함수 간의 상호작용 결함으로 인해 공격자가 mail 명령어에 추가 인자를 주입할 수 있습니다. 이를 통해 원격에서 임의의 코드를 실행할 수 있으며, CVE-2016-10033의 부정확한 패치로 인해 발생한 취약점입니다.

💡 쉬운 설명

PHPMailer 이메일 라이브러리의 보안 결함으로 인해 공격자가 서버에서 악의적인 명령을 실행할 수 있습니다. 이메일 주소나 헤더를 조작하여 시스템 명령어를 주입하는 방식으로 공격합니다.

🇺🇸 원문 (English)

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033.

📍 영향받는 시스템

PHPMailer versions < 5.2.20

⚔️ 공격 벡터

Remote code execution via mail command parameter injection through crafted sender address or email headers in isMail transport

🛡️ 대응 방법

Update PHPMailer to version 5.2.20 or later immediately

🔧 검증 코드

출력된 버전이 5.2.20 이상이면 안전하고, 5.2.20 미만이면 즉시 업데이트 필요입니다.

Shell / Script
grep -r 'PHPMailer' vendor/composer/installed.json 2>/dev/null | grep -o '"version":"[0-9.]*"' | head -1

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP