🔍 CVE-2026-6475

8.8
CVSS Score
HIGH
2026-05-14
2026-05-18 15:02
✅ 완료

🇰🇷 한글 설명

PostgreSQL의 pg_basebackup과 pg_rewind에서 심볼릭 링크 추종 취약점이 발견되었습니다. 원본 슈퍼유저가 /var/lib/postgres/.bashrc 등 로컬 파일을 덮어쓸 수 있으며, OS 계정 탈취로 이어질 수 있습니다. 영향받는 버전: 18.4, 17.10, 16.14, 15.18, 14.23 이전 모든 버전.

💡 쉬운 설명

PostgreSQL 백업 도구가 심볼릭 링크를 제대로 확인하지 않아 관리자 권한의 공격자가 시스템 설정 파일을 변조할 수 있습니다. 이를 통해 서버 시작 시 악의적인 명령을 실행하거나 계정을 탈취할 수 있습니다.

🇺🇸 원문 (English)

Symlink following in PostgreSQL pg_basebackup plain format and in pg_rewind allows an origin superuser to overwrite local files, e.g. /var/lib/postgres/.bashrc, that hijack the operating system account. It will remain the case that starting the server after these commands implicitly trusts the origin superuser, due to features like shared_preload_libraries. Hence, the attack has practical implications only if one takes relevant action between these commands and server start, like moving the files to a different VM or snapshotting the VM. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

📍 영향받는 시스템

PostgreSQL < 18.4, 17.10, 16.14, 15.18, 14.23 (모든 플랫폼)

⚔️ 공격 벡터

Origin superuser가 pg_basebackup 또는 pg_rewind 실행 시 심볼릭 링크를 악용하여 /var/lib/postgres/ 내 파일(예: .bashrc, shared_preload_libraries) 덮어쓰기

🛡️ 대응 방법

PostgreSQL을 최신 보안 패치 버전(18.4, 17.10, 16.14, 15.18, 14.23 이상)으로 업그레이드하거나 pg_basebackup/pg_rewind 실행 권한 제한

🔧 검증 코드

현재 설치된 PostgreSQL 버전이 표시됩니다. 위 취약한 버전 목록과 비교하여 업그레이드 필요 여부 판단 (예: 17.9 이하면 17.10으로 업그레이드 필요)

Shell / Script
psql --version 2>/dev/null | grep -oE 'PostgreSQL [0-9]+\.[0-9]+'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PostgreSQL
🇰🇷 KISA(한국인터넷진흥원) 보안 권고 이 CVE에 대한 한국 공식 권고 (1건)
PostgreSQL 제품 보안 업데이트 권고 P4
📅 2026-09-10 · sec_notice
PostgreSQL 제품에서 SQL Injection, Buffer Overflow 등 다양한 보안 취약점이 발견되었습니다. 해당 제품을 사용하는 사용자는 데이터 유출 및 시스템 권한 탈취를 방지하기 위해 최신 보안 버전으로 업데이트해야 합니다.
KISA 원문 →