🔍 CVE-2005-2572

8.5
CVSS Score
HIGH
2005-08-16
2026-04-16 00:27
✅ 완료

🇰🇷 한글 설명

Windows에서 실행 중인 MySQL에서 mysql.func 테이블에 insert 권한을 가진 인증된 원격 사용자가 비라이브러리 파일 요청이나 특정 DLL 파일을 통해 서버 행(hang) 또는 임의코드 실행을 유발할 수 있는 취약점입니다.

💡 쉬운 설명

Windows의 MySQL 데이터베이스에서 권한이 있는 사용자가 특정 파일을 로드하도록 요청하면 서버가 멈추거나 악의적인 코드가 실행될 수 있습니다. 이는 잘못된 DLL 파일을 로드하려고 할 때 발생합니다.

🇺🇸 원문 (English)

MySQL, when running on Windows, allows remote authenticated users with insert privileges on the mysql.func table to cause a denial of service (server hang) and possibly execute arbitrary code via (1) a request for a non-library file, which causes the Windows LoadLibraryEx function to block, or (2) a request for a function in a library that has the XXX_deinit or XXX_init functions defined but is not tailored for mySQL, such as jpeg1x32.dll and jpeg2x32.dll.

📍 영향받는 시스템

Windows에서 실행 중인 MySQL (정확한 버전 정보는 공개 기록에서 확인 필요, 일반적으로 MySQL 4.1.x ~ 5.0.x)

⚔️ 공격 벡터

인증된 사용자가 mysql.func 테이블에 비라이브러리 파일이나 특정 DLL(jpeg1x32.dll 등)을 함수로 등록하여 요청

🛡️ 대응 방법

MySQL을 최신 패치 버전으로 업그레이드하고 mysql.func 테이블에 대한 insert 권한을 최소화

🔧 검증 코드

결과에 jpeg 또는 dll 문자열이 있으면 의심스러운 함수가 등록되어 있다는 의미이며, 정상적으로 등록되어야 할 함수만 존재해야 합니다.

Shell / Script
mysql -u root -p -e "SELECT * FROM mysql.func WHERE name LIKE '%jpeg%' OR name LIKE '%dll%';" 2>/dev/null | grep -E 'jpeg|dll'

📊 CVSS Vector String

CVSS Vector
AV:N/AC:M/Au:S/C:C/I:C/A:C

💻 영향받는 소프트웨어

MySQL