🔍 CVE-2009-4017

5.0
CVSS Score
MEDIUM
2009-11-24
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

PHP의 multipart/form-data POST 요청 처리에서 임시 파일 생성 수 제한이 없어 공격자가 대량의 임시 파일을 생성하여 서버 리소스를 고갈시킬 수 있습니다. max_file_uploads 지시어 미지원으로 인해 로컬 파일 포함(LFI) 취약점 악용도 용이해집니다.

💡 쉬운 설명

PHP 서버에서 많은 파일을 한 번에 업로드하면 임시 파일이 무제한으로 생성되어 서버가 느려지거나 다운될 수 있습니다. 이를 통해 공격자는 서버 마비(DoS)를 일으키거나 다른 보안 약점을 악용할 수 있습니다.

🇺🇸 원문 (English)

PHP before 5.2.12 and 5.3.x before 5.3.1 does not restrict the number of temporary files created when handling a multipart/form-data POST request, which allows remote attackers to cause a denial of service (resource exhaustion), and makes it easier for remote attackers to exploit local file inclusion vulnerabilities, via multiple requests, related to lack of support for the max_file_uploads directive.

📍 영향받는 시스템

PHP < 5.2.12 및 PHP 5.3.0 ~ 5.3.0

⚔️ 공격 벡터

multipart/form-data 형식의 다중 POST 요청으로 대량의 임시 파일 생성 유도

🛡️ 대응 방법

PHP를 5.2.12 이상 또는 5.3.1 이상으로 업그레이드하고 php.ini의 max_file_uploads 값 설정

🔧 검증 코드

PHP 버전이 5.2.12 미만 또는 5.3.0이면 취약, 5.2.12 이상(5.3.1 미만 제외) 또는 5.3.1 이상이면 안전

Shell / Script
php -v 2>/dev/null | head -1

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP