🇰🇷 한글 설명
PHP의 date 확장자에서 직렬화된 DateTimeZone/DateTime 데이터 처리 시 use-after-free 취약점이 발생합니다. R/r 타입 지정자를 포함한 악의적인 입력을 통해 원격 공격자가 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
PHP 프로그램에서 날짜/시간 정보를 처리할 때 메모리 오류가 발생합니다. 공격자가 특별하게 만든 데이터를 보내면 프로그램이 공격자의 명령을 실행할 수 있습니다.
🇺🇸 원문 (English)
Multiple use-after-free vulnerabilities in ext/date/php_date.c in PHP before 5.4.38, 5.5.x before 5.5.22, and 5.6.x before 5.6.6 allow remote attackers to execute arbitrary code via crafted serialized input containing a (1) R or (2) r type specifier in (a) DateTimeZone data handled by the php_date_timezone_initialize_from_hash function or (b) DateTime data handled by the php_date_initialize_from_hash function.
📍 영향받는 시스템
PHP 5.4.0~5.4.37, 5.5.0~5.5.21, 5.6.0~5.6.5
⚔️ 공격 벡터
직렬화된 DateTimeZone/DateTime 객체에 R 또는 r 타입 지정자를 포함하여 원격 입력
🛡️ 대응 방법
PHP를 5.4.38, 5.5.22, 5.6.6 이상으로 업그레이드
🔧 검증 코드
PHP 버전이 5.4.38, 5.5.22, 5.6.6 이상인지 확인하여 대응된 버전이면 취약점이 없습니다.
php -v | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1