🔍 CVE-2004-1018

10.0
CVSS Score
HIGH
2005-01-10
2026-04-16 00:27
✅ 완료

🇰🇷 한글 설명

PHP 4.3.10 이전 버전의 정수 처리 오류로 인해 shmop_write, pack, unpack 함수에서 정수 오버플로우/언더플로우가 발생합니다. 공격자는 이를 악용하여 safe mode 제한을 우회하고 임의 코드를 실행하거나 서비스 거부 공격을 수행할 수 있습니다.

💡 쉬운 설명

PHP의 버그로 인해 공격자가 보안 제한을 우회하고 악의적인 코드를 실행할 수 있습니다. 특히 파일 공유 및 데이터 처리 함수에서 문제가 발생합니다.

🇺🇸 원문 (English)

Multiple integer handling errors in PHP before 4.3.10 allow attackers to bypass safe mode restrictions, cause a denial of service, or execute arbitrary code via (1) a negative offset value to the shmop_write function, (2) an "integer overflow/underflow" in the pack function, or (3) an "integer overflow/underflow" in the unpack function. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.

📍 영향받는 시스템

PHP < 4.3.10 (shmop_write, pack, unpack 함수 영향)

⚔️ 공격 벡터

정수 오버플로우를 유발하는 특수 값 또는 음수 offset 입력을 통한 메모리 직접 접근

🛡️ 대응 방법

PHP를 4.3.10 이상으로 즉시 업그레이드

🔧 검증 코드

4.3.10 미만의 버전이 출력되면 취약, 4.3.10 이상이면 패치됨

Shell / Script
php -v | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP