🔍 CVE-2026-96538

0.0
CVSS Score
UNKNOWN
2026-09-28
2026-09-30 19:57
✅ 완료

🇰🇷 한글 설명

WarehousePG 7.x(7.6.0 미만) 버전에서 권한 검증 누락으로 인해 인증된 모든 데이터베이스 역할이 파일 관련 함수를 실행할 수 있는 취약점이 발견되었습니다. 공격자는 이를 통해 데이터 및 로그 디렉토리 내의 파일을 생성, 수정, 삭제할 수 있으며, 설정 파일을 조작하여 서버 재시작 시 임의의 코드를 실행할 수 있습니다.

💡 쉬운 설명

데이터베이스에 로그인할 수 있는 사용자라면 누구나 서버의 중요한 파일을 마음대로 바꾸거나 지울 수 있는 보안 구멍이 있습니다. 이를 악용하면 해커가 서버의 제어권을 완전히 뺏어갈 수 있어 매우 위험합니다.

🇺🇸 원문 (English)

WarehousePG (WHPG) 7.x before 7.6.0-WHPG is affected by a missing authorization vulnerability (CWE-862) in the built-in server-side file functions pg_file_write(text,text,bool), pg_file_rename(text,text,text), pg_file_unlink(text), and pg_logdir_ls(). These functions are executable by any authenticated database role with no GRANT required, because the REVOKE that contrib/adminpack applies to the equivalent functions was never carried over to WHPG core when their catalog entries were repointed to the ungated adminpack-derived implementations as part of Greenplum's merge to a PostgreSQL 12 base. A non-superuser can use pg_file_write, pg_file_rename, and pg_file_unlink to create, overwrite (append), rename, and delete files under the data and log directories, and can use pg_logdir_ls() to enumerate log file names. Because postgresql.auto.conf resides in the data directory, a non-superuser can append configuration directives such as shared_preload_libraries or archive_command to it, resulting in arbitrary code execution as the postgres operating system user on the next server restart or configuration reload. WarehousePG 6.x is not affected, as the equivalent functions there enforce a superuser check internally.

📍 영향받는 시스템

WarehousePG 7.x (7.6.0 미만 버전)

⚔️ 공격 벡터

인증된 일반 사용자가 권한 없이 제공되는 파일 관리 함수를 호출하여 설정 파일을 조작함

🛡️ 대응 방법

WarehousePG를 7.6.0 이상의 최신 버전으로 업데이트하십시오.

🔧 검증 코드

명령어 결과에 WarehousePG 7.0부터 7.5 사이의 버전이 나타나면 취약한 상태입니다.

Shell / Script
psql -c "SELECT version();" | grep -E 'WarehousePG 7\.[0-5]\.'

💻 영향받는 소프트웨어

Multi-Domain Log Server