🔍 CVE-2026-116249

8.4
CVSS Score
HIGH
2026-10-30
2026-10-30 20:17
✅ 완료

🇰🇷 한글 설명

pgAdmin 4 서버 모드에서 비밀번호 파일, SSL 인증서, 키, SSH 터널 파일 경로가 사용자 저장소 밖을 가리킬 수 있어 다른 사용자의 저장된 비밀번호나 키를 사용하거나 임의 파일을 생성·추가할 수 있습니다. 또한 연결 파라미터 이름이 검증되지 않아 추가 키-값 쌍이 주입될 수 있습니다. 9.19 이전 버전에 영향을 줍니다.

💡 쉬운 설명

공격자가 경로에 '../'를 넣어 다른 사용자의 데이터베이스 비밀번호나 인증서에 접근할 수 있습니다. 또한 pgAdmin이 실행되는 계정 권한으로 임의의 파일을 만들거나 수정하게 할 수 있습니다.

🇺🇸 원문 (English)

In server mode pgAdmin 4 resolves a server's password file, SSL certificate, key, CRL and SSH tunnel identity file relative to the user's storage directory, but get_complete_file_path() only stripped leading slashes before joining the two. A path such as "../<another user>/.pgpass", set through the server dialog, the REST API or a servers.json import, therefore named another user's file, and connecting used that user's saved passwords, client certificate or SSH key. The sslkeylogfile connection parameter was passed to libpq unchanged, so a path outside storage let libpq create or append a file as the account running pgAdmin. make_conninfo() also quoted connection parameter values but not their names, so a crafted parameter name could smuggle additional keyword=value pairs past these checks. The fix requires the resolved path, with symbolic links followed, to stay inside the user's storage directory or the named shared storage directory, confines sslkeylogfile the same way, and accepts only exact libpq keywords as connection parameter names. A refused path or keyword is reported instead of letting libpq fall back to a default. This issue affects pgAdmin 4: before 9.19.

📍 영향받는 시스템

pgAdmin 4 9.19 이전 버전 (서버 모드)

⚔️ 공격 벡터

서버 대화상자, REST API 또는 servers.json 가져오기에서 '../<다른사용자>/.pgpass'와 같은 경로와 조작된 연결 파라미터 이름을 설정

🛡️ 대응 방법

pgAdmin 4를 9.19 이상으로 업데이트

🔧 검증 코드

출력된 버전이 9.19 미만이면 취약하므로 9.19 이상으로 업데이트가 필요하고, 9.19 이상이면 패치가 적용된 것입니다.

Shell / Script
pip show pgadmin4 2>/dev/null | grep -i version || dpkg -l | grep pgadmin4 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Splunk MCP Server app