🔍 CVE-2015-0231

7.5
CVSS Score
HIGH
2015-01-27
2026-05-06 22:30
✅ 완료

🇰🇷 한글 설명

PHP의 unserialize 함수에서 중복된 숫자 키를 가진 직렬화 객체를 부적절하게 처리할 때 메모리 해제 후 사용(use-after-free) 취약점이 발생합니다. 이는 원격 공격자가 악의적인 unserialize 호출을 통해 임의 코드를 실행할 수 있게 합니다.

💡 쉬운 설명

PHP에서 저장된 데이터를 복원할 때, 특정한 형식의 데이터를 보내면 프로그램이 이미 삭제된 메모리를 사용하려고 시도합니다. 이를 악용하면 서버에서 원하는 명령을 실행할 수 있습니다.

🇺🇸 원문 (English)

Use-after-free vulnerability in the process_nested_data function in ext/standard/var_unserializer.re in PHP before 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5 allows remote attackers to execute arbitrary code via a crafted unserialize call that leverages improper handling of duplicate numerical keys within the serialized properties of an object. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-8142.

📍 영향받는 시스템

PHP 5.4.37 이전, 5.5.x (5.5.21 이전), 5.6.x (5.6.5 이전)

⚔️ 공격 벡터

원격 공격자가 조작된 직렬화 데이터를 unserialize() 함수로 전송하여 use-after-free 취약점 트리거

🛡️ 대응 방법

PHP를 5.4.37, 5.5.21, 5.6.5 이상으로 업그레이드

🔧 검증 코드

현재 PHP 버전 확인 후 5.4.37, 5.5.21, 5.6.5 이상인지 확인하여 패치 여부 판단

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

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP