🔍 CVE-2016-6662

9.8
CVSS Score
CRITICAL
2016-09-20
2026-06-17 00:51
✅ 완료

🇰🇷 한글 설명

MySQL, MariaDB, Percona Server에서 로컬 사용자가 my.cnf 설정 파일의 general_log_file을 조작하여 임의의 설정을 생성할 수 있습니다. malloc_lib 설정을 통해 루트 권한으로 임의의 코드 실행이 가능하며 보안 메커니즘 우회가 가능합니다.

💡 쉬운 설명

MySQL이 설치된 서버에 접속 가능한 일반 사용자가 MySQL 설정 파일을 조작하여 관리자 권한으로 자신의 코드를 실행할 수 있는 문제입니다. 이를 통해 전체 서버를 장악할 수 있습니다.

🇺🇸 원문 (English)

Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB before 5.5.51, 10.0.x before 10.0.27, and 10.1.x before 10.1.17; and Percona Server before 5.5.51-38.1, 5.6.x before 5.6.32-78.0, and 5.7.x before 5.7.14-7 allow local users to create arbitrary configurations and bypass certain protection mechanisms by setting general_log_file to a my.cnf configuration. NOTE: this can be leveraged to execute arbitrary code with root privileges by setting malloc_lib. NOTE: the affected MySQL version information is from Oracle's October 2016 CPU. Oracle has not commented on third-party claims that the issue was silently patched in MySQL 5.5.52, 5.6.33, and 5.7.15.

📍 영향받는 시스템

MySQL 5.5.52 이하, 5.6.33 이하, 5.7.15 이하; MariaDB 5.5.50 이하, 10.0.26 이하, 10.1.16 이하; Percona Server 5.5.51-38 이하, 5.6.32-77 이하, 5.7.14-6 이하

⚔️ 공격 벡터

로컬 사용자가 my.cnf 설정의 general_log_file 및 malloc_lib을 조작하여 루트 권한으로 임의 코드 실행

🛡️ 대응 방법

MySQL/MariaDB/Percona Server를 패치 버전으로 업그레이드 및 파일 시스템 권한 검토

🔧 검증 코드

설치된 패키지 버전이 권장 버전 이상인지 확인하거나 mysql -V로 버전 체크 후 5.5.52, 5.6.33, 5.7.15 이상인지 확인

Shell / Script
dpkg -l | grep -iE 'mysql|mariadb|percona' | awk '{print $2, $3}'

📊 CVSS Vector String

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

MariaDB