🔍 CVE-2009-3294

5.0
CVSS Score
MEDIUM
2009-09-22
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

Windows 운영 체제에서 PHP 5.2.11 이전 및 5.3.x 5.3.1 이전 버전의 TSRM/tsrm_win32.c 파일의 popen API 함수에서 발생하는 취약점입니다. 공격자가 mode 인자에 'e' 또는 'er' 문자열을 전달하면 Microsoft C 런타임 라이브러리의 _fdopen 함수와 관련하여 PHP 프로세스의 충돌(Denial of Service)을 유발할 수 있습니다.

💡 쉬운 설명

PHP에서 파일을 열 때 특정 문자열을 사용하면 Windows에서 프로그램이 멈출 수 있습니다. 이를 악용하면 서비스를 중단시킬 수 있습니다.

🇺🇸 원문 (English)

The popen API function in TSRM/tsrm_win32.c in PHP before 5.2.11 and 5.3.x before 5.3.1, when running on certain Windows operating systems, allows context-dependent attackers to cause a denial of service (crash) via a crafted (1) "e" or (2) "er" string in the second argument (aka mode), possibly related to the _fdopen function in the Microsoft C runtime library. NOTE: this might not cross privilege boundaries except in rare cases in which the mode argument is accessible to an attacker outside of an application that uses the popen function.

📍 영향받는 시스템

PHP 5.2.11 이전, PHP 5.3.0~5.3.1 (Windows OS)

⚔️ 공격 벡터

popen 함수의 mode 인자에 'e' 또는 'er' 문자열을 전달하여 DoS 유발

🛡️ 대응 방법

PHP를 5.2.11 이상 또는 5.3.1 이상으로 업그레이드

🔧 검증 코드

PHP 버전이 5.2.11 미만이거나 5.3.0~5.3.1이면 취약, 5.2.11 이상 또는 5.3.1 이상이면 안전

Shell / Script
php -v | grep -E 'PHP (5\.[23]\.)' && echo 'Vulnerable' || echo 'Check version'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP