🇰🇷 한글 설명
PostgreSQL의 ALTER TABLE ALTER TYPE 명령 실행 시 종속된 통계 객체의 소유권이 현재 사용자에게 잘못 할당되는 취약점입니다. 이로 인해 테이블 소유자가 통계 객체를 삭제하거나 수정할 수 있게 되지만, 기존 소유자의 권한은 박탈됩니다. 다만 DROP TABLE 명령은 여전히 통계 객체를 삭제할 수 있어 실제 공격의 실효성은 낮습니다.
💡 쉬운 설명
데이터베이스의 테이블 형식을 바꿀 때, 연결된 통계 정보의 주인 이름이 엉뚱하게 바뀌는 문제입니다. 이로 인해 원래 주인이 통계 정보를 관리하지 못하게 되는 권한 혼선이 발생할 수 있습니다.
🇺🇸 원문 (English)
Incorrect ownership assignment in PostgreSQL ALTER TABLE ALTER TYPE command reassigns ownership of dependent statistics objects to the current user. This wrongly allows the table owner to run DROP STATISTICS and ALTER STATISTICS via this improper ownership. It wrongly denies those commands to the prior statistics object owner. DROP TABLE remains able to remove statistics objects, so this exploit achieves nothing in many ownership arrangements. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.
📍 영향받는 시스템
PostgreSQL 18.6, 17.11, 16.15, 15.19, 14.24 미만 버전
⚔️ 공격 벡터
ALTER TABLE ALTER TYPE 명령을 통한 통계 객체 소유권 탈취
🛡️ 대응 방법
PostgreSQL을 최신 보안 패치 버전(18.6, 17.11, 16.15, 15.19, 14.24 이상)으로 업데이트
🔧 검증 코드
명령어 실행 결과에 해당 버전 번호가 나타나면 보안 패치가 완료된 상태입니다.
psql --version | grep -E 'PostgreSQL (18\[\.]6|17\[\.]11|16\[\.]15|15\[\.]19|14\[\.]24)'