🇰🇷 한글 설명
MariaDB의 ST_AsText 함수에서 깊게 중첩된 GeometryCollections를 변환할 때 할당된 출력 버퍼를 초과하여 데이터를 쓰는 버퍼 오버플로우 취약점이 발견되었습니다. 공격자가 특수하게 제작된 GIS 객체를 제출하면 메모리를 오염시키고 다른 취약점과 결합하여 원격 코드 실행을 달성할 수 있습니다.
💡 쉬운 설명
지도 데이터를 처리하는 과정에서 데이터 크기를 제대로 계산하지 못해 메모리 공간을 넘쳐나게 만드는 오류입니다. 해커가 이 허점을 이용해 컴퓨터에 악성 명령을 내릴 위험이 있습니다.
🇺🇸 원문 (English)
MariaDB server is a community developed fork of MySQL server. From 10.6.1 until 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2, ST_AsText can write beyond an allocated output buffer when converting deeply nested GeometryCollections because recursive WKT serialization does not account for bytes consumed or reserve sufficient space. A low-privileged remote attacker can submit a specially crafted GIS object to corrupt memory and potentially achieve code execution when combined with another vulnerability. This issue is fixed in versions 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2.
📍 영향받는 시스템
MariaDB 10.6.1~10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2
⚔️ 공격 벡터
저권한 원격 공격자가 특수하게 조작된 GIS(지리정보시스템) 객체를 전송하여 공격
🛡️ 대응 방법
MariaDB를 최신 보안 패치 버전(10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2 이상)으로 업데이트
🔧 검증 코드
명령어 결과에 취약 버전 범위가 포함되면 업데이트가 필요하며, 패치된 버전이 출력되면 안전합니다.
mariadb --version | grep -E '10.6\.[2-9][0-9]|10.11\.19|11.4\.13|11.8\.9|12.3\.3|13.0\.2'