🔍 CVE-2026-7819

8.1
CVSS Score
HIGH
2026-05-11
2026-10-26 18:10
✅ 완료

🇰🇷 한글 설명

pgAdmin 4 파일 관리자의 check_access_permission 함수가 os.path.abspath를 사용해 심볼릭 링크를 해석하지 않아, 인증된 사용자가 자신의 저장소 디렉터리 내에 외부를 가리키는 심볼릭 링크를 만들어 pgAdmin 프로세스가 접근 가능한 임의 경로에 쓰기를 유도할 수 있습니다. 수정본은 realpath 기반 검사, O_NOFOLLOW 기반 열기, 파일 권한 0o600 강화를 적용했습니다.

💡 쉬운 설명

로그인한 사용자가 바로가기 같은 특수 링크를 만들어 pgAdmin이 원래 허용되지 않은 위치에 파일을 쓰게 만들 수 있는 취약점입니다. 9.15 이상으로 업데이트하면 이 문제가 해결됩니다.

🇺🇸 원문 (English)

Symbolic-link path traversal (CWE-61, CWE-22) in pgAdmin 4 File Manager. check_access_permission used os.path.abspath, which resolves '..' but does not resolve symbolic links, while the subsequent kernel write follows symlinks. An authenticated user could plant a symbolic link inside their own storage directory pointing outside it and induce pgAdmin to write to any path reachable by the pgAdmin process. Fix switches the access check to os.path.realpath for both source and destination, and adds an _open_upload_target helper that opens the target with O_NOFOLLOW (mode 0o600) to close the leaf-component TOCTOU between the access check and the open. File mode is hardened from 0o644 to 0o600. This issue affects pgAdmin 4: before 9.15.

📍 영향받는 시스템

pgAdmin 4 9.15 미만 버전

⚔️ 공격 벡터

인증된 사용자가 자신의 저장소 안에 외부 경로를 가리키는 심볼릭 링크를 생성한 뒤 파일 관리자를 통해 해당 경로로 업로드/쓰기를 유도

🛡️ 대응 방법

pgAdmin 4를 9.15 이상 버전으로 업그레이드

🔧 검증 코드

출력된 버전 번호가 9.15 미만이면 취약하며, 9.15 이상이면 패치가 적용된 것입니다. 아무것도 출력되지 않으면 설치되지 않은 것입니다.

Shell / Script
pgadmin4 --version 2>/dev/null || dpkg -l | grep -i pgadmin4 2>/dev/null || rpm -qa | grep -i pgadmin4 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Magento Open Source