🔍 CVE-2026-86863

9.8
CVSS Score
CRITICAL
2026-09-17
2026-09-21 17:27
✅ 완료

🇰🇷 한글 설명

pgAdmin 4의 웹서버 인증 소스 설정에서 HTTP 요청 헤더를 통해 전달된 사용자 정보를 검증 없이 신뢰하여 발생하는 인증 우회 취약점입니다. 공격자가 HTTP 헤더에 임의의 사용자 이름을 포함하여 전송하면 비밀번호 없이 관리자 권한을 획득할 수 있습니다. 이 문제는 AUTHENTICATION_SOURCES에 'webserver'가 활성화된 환경에서 발생합니다.

💡 쉬운 설명

로그인 과정에서 이름표(헤더)만 보고 누구인지 확인해버리는 보안 허점이 발견되었습니다. 공격자가 가짜 이름표를 만들어 보내면 비밀번호 없이 관리자로 접속할 수 있는 위험한 상태입니다.

🇺🇸 원문 (English)

pgAdmin 4's Webserver authentication source is intended to accept an identity asserted by the web server or reverse proxy in front of pgAdmin, delivered through the WSGI/CGI environment. WebserverAuthentication.get_user() read config.WEBSERVER_REMOTE_USER from request.environ and, when that returned nothing, fell back to reading the same name directly from the inbound HTTP request headers via request.headers.get(). An inbound HTTP header is written by whoever sends the request, so any client able to reach pgAdmin could supply that header itself and be authenticated as any username it named, including an existing Administrator, without presenting a password or any other credential. The environment lookup could also be satisfied by a client-supplied header whenever WEBSERVER_REMOTE_USER was configured to an HTTP_-prefixed or hyphenated name such as HTTP_X_FORWARDED_USER or X-Forwarded-User, since WSGI servers place inbound headers into the environment under exactly those names. Deployments are affected only when 'webserver' is enabled in AUTHENTICATION_SOURCES. The fix distinguishes a genuine CGI/WSGI variable from a header-derived one and implicitly trusts only the former. A header-asserted identity is now accepted only when the operator explicitly opts in via WEBSERVER_REMOTE_USER_FROM_HEADER, the request arrives from a peer listed in WEBSERVER_TRUSTED_PROXIES, and, when configured, a shared secret supplied in WEBSERVER_SHARED_SECRET_HEADER matches WEBSERVER_SHARED_SECRET under a constant-time comparison. The trusted-peer check deliberately reads the real socket peer address rather than request.remote_addr, because ProxyFix rewrites the latter from the client-controlled X-Forwarded-For header and would otherwise allow an attacker to claim to be the trusted proxy. As defence in depth, login() now refuses any account whose auth_source is not 'webserver', so a misconfigured trust gate cannot be used to assume an internal or LDAP account. This issue affects pgAdmin 4: from 6.2 before 9.18.

📍 영향받는 시스템

pgAdmin 4: 6.2 버전부터 9.18 버전 미만

⚔️ 공격 벡터

조작된 HTTP 요청 헤더(예: X-Forwarded-User 등)를 전송하여 인증을 우회함

🛡️ 대응 방법

pgAdmin 4를 9.18 이상의 최신 버전으로 업데이트하거나, 웹서버 인증 설정을 안전하게 재구성하십시오.

🔧 검증 코드

출력된 버전이 9.18 미만인 경우 해당 취약점에 노출된 상태입니다.

Shell / Script
pip show pgadmin4 | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Log Server