🔍 CVE-2007-1717

5.0
CVSS Score
MEDIUM
2007-03-28
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

PHP 4.0.0~4.4.6, 5.0.0~5.2.1의 mail() 함수에서 null byte('\0')를 만나면 그 이후 내용을 자르는 버그. 로깅 정보나 형식 검증이 중요한 경우 보안 문제가 될 수 있음.

💡 쉬운 설명

PHP 이메일 전송 함수가 특수한 null 문자를 만나면 그 뒤의 모든 내용을 버립니다. 중요한 정보나 보안 관련 데이터가 제대로 전달되지 않을 수 있습니다.

🇺🇸 원문 (English)

The mail function in PHP 4.0.0 through 4.4.6 and 5.0.0 through 5.2.1 truncates e-mail messages at the first ASCIIZ ('\0') byte, which might allow context-dependent attackers to prevent intended information from being delivered in e-mail messages. NOTE: this issue might be security-relevant in cases when the trailing contents of e-mail messages are important, such as logging information or if the message is expected to be well-formed.

📍 영향받는 시스템

PHP 4.0.0~4.4.6, PHP 5.0.0~5.2.1

⚔️ 공격 벡터

공격자가 null byte를 포함한 입력값을 이메일 본문에 주입하여 의도한 메시지 내용 이후의 정보를 자르기

🛡️ 대응 방법

PHP를 패치된 버전(4.4.7+ 또는 5.2.2+)으로 즉시 업그레이드 필요

🔧 검증 코드

PHP 버전이 4.4.6 이하 또는 5.0.0~5.2.1 범위면 취약함. 5.2.2 이상이면 패치됨

Shell / Script
php -v | grep -oP 'PHP \\K[0-9]+\\.[0-9]+\\.[0-9]+'

📊 CVSS Vector String

CVSS Vector
AV:N/AC:L/Au:N/C:N/I:P/A:N

💻 영향받는 소프트웨어

PHP