🇰🇷 한글 설명
PostgreSQL의 bitsubstr 함수에서 세 번째 인자로 음수 정수를 처리할 때 overflow 취약점이 발생합니다. 원격 인증 사용자가 이를 악용하여 데몬 충돌(DoS) 또는 미지정 영향을 미칠 수 있습니다.
💡 쉬운 설명
PostgreSQL 데이터베이스의 부분 문자열 추출 함수가 음수를 처리할 때 예상치 못한 오류를 일으킵니다. 데이터베이스 접근 권한이 있는 사용자가 이를 악용해 데이터베이스를 중단시킬 수 있습니다.
🇺🇸 원문 (English)
The bitsubstr function in backend/utils/adt/varbit.c in PostgreSQL 8.0.23, 8.1.11, and 8.3.8 allows remote authenticated users to cause a denial of service (daemon crash) or have unspecified other impact via vectors involving a negative integer in the third argument, as demonstrated by a SELECT statement that contains a call to the substring function for a bit string, related to an "overflow."
📍 영향받는 시스템
PostgreSQL 8.0.23, 8.1.11, 8.3.8
⚔️ 공격 벡터
인증된 사용자가 substring 함수 호출 시 bitsubstr 함수의 세 번째 인자에 음수 값을 전달하는 SQL 쿼리 실행
🛡️ 대응 방법
PostgreSQL을 8.0.24, 8.1.12, 8.3.9 이상 버전으로 업그레이드
🔧 검증 코드
출력된 버전이 8.0.24 이상(8.0계열), 8.1.12 이상(8.1계열), 8.3.9 이상(8.3계열)이면 패치됨
psql --version 2>/dev/null | grep -oP 'PostgreSQL \K[0-9]+\.[0-9]+\.[0-9]+'