🔍 CVE-2007-1888

7.5
CVSS Score
HIGH
2007-04-06
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

SQLite 2의 sqlite_decode_binary 함수에서 버퍼 오버플로우 취약점으로, PHP 4.x부터 5.x에 번들된 SQLite에 영향을 줍니다. in 매개변수에 빈 값을 전달하여 임의 코드 실행이 가능합니다.

💡 쉬운 설명

SQLite 데이터베이스에서 특수한 빈 값 데이터를 처리할 때 메모리 경계를 넘어 해커가 원하는 코드를 실행할 수 있습니다. 주로 PHP 웹사이트에서 발생합니다.

🇺🇸 원문 (English)

Buffer overflow in the sqlite_decode_binary function in src/encode.c in SQLite 2, as used by PHP 4.x through 5.x and other applications, allows context-dependent attackers to execute arbitrary code via an empty value of the in parameter. NOTE: some PHP installations use a bundled version of sqlite without this vulnerability. The SQLite developer has argued that this issue could be due to a misuse of the sqlite_decode_binary() API.

📍 영향받는 시스템

SQLite 2, PHP 4.x-5.x (번들 버전)

⚔️ 공격 벡터

특수하게 조작된 빈 값을 sqlite_decode_binary() 함수의 in 매개변수로 전달하여 메모리 오버플로우 발생

🛡️ 대응 방법

PHP를 5.1 이상으로 업그레이드하거나 시스템 설치 SQLite 라이브러리 사용으로 변경

🔧 검증 코드

PHP 4.x 또는 5.x 초기 버전이 출력되면 취약함. PHP 5.1 이상이면 패치됨.

Shell / Script
php -v 2>/dev/null | grep -iE 'PHP [45]' && echo VULNERABLE || echo PATCHED

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP