🇰🇷 한글 설명
MariaDB 서버의 ALTER TABLE ... CONVERT ... PARTITION 구문에서 사용자 지정 파티션 이름에 파일명 인코딩이 적용되지 않아 경로 조작이 가능합니다. 인증된 DB 사용자가 권한이 없는 테이블 파일을 읽거나 수정할 수 있습니다. 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2 버전에서 수정되었습니다.
💡 쉬운 설명
MariaDB 데이터베이스에서 일반 사용자가 특수하게 만든 파티션 이름을 이용해 자신에게 권한이 없는 다른 테이블의 데이터를 몰래 보거나 바꿀 수 있는 취약점입니다. 패치된 버전으로 업데이트하면 해결됩니다.
🇺🇸 원문 (English)
MariaDB server is a community developed fork of MySQL server. From 10.11.1 until 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2, ALTER TABLE ... CONVERT ... PARTITION does not apply filename encoding to user-specified partition names before using them in filesystem path construction. An authenticated database user can use a partition name requiring filename escaping to make the conversion operate on table files the user is not authorized to access, allowing unauthorized table reads or modifications. This issue is fixed in versions 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2.
📍 영향받는 시스템
MariaDB 10.11.1~10.11.18, 11.4.x(<11.4.13), 11.8.x(<11.8.9), 12.3.x(<12.3.3), 13.0.x(<13.0.2)
⚔️ 공격 벡터
인증된 데이터베이스 사용자가 파일명 인코딩이 필요한 파티션 이름을 포함한 ALTER TABLE ... CONVERT ... PARTITION 구문을 실행하여 권한 없는 테이블 파일에 접근
🛡️ 대응 방법
MariaDB를 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2 이상 버전으로 업데이트
🔧 검증 코드
출력된 버전이 취약 범위(10.11.1~10.11.18, 11.4.13 미만, 11.8.9 미만, 12.3.3 미만, 13.0.2 미만)에 해당하면 취약하며, 패치 버전 이상이면 수정된 것입니다.
mariadb --version 2>/dev/null || mysql --version 2>/dev/null