Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-86863— pgAdmin 4: Authentication bypass via a client-controlled identity header in Webserver authentication mode

Quick assessment

Affected
pgadmin.org pgAdmin 4
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

pgAdmin 4 的 Webserver 认证源旨在接受由位于 pgAdmin 前方的 Web 服务器或反向代理所声明的身份,该身份通过 WSGI/CGI 环境变量传递。WebserverAuthentication.get_user() 会从 request.environ 中读取 config.WEBSERVER_REMOTE_USER;当该值为空时,会回退到直接通过 request.headers.get() 从入站 HTTP 请求头中读取同名键值。由于入站 HTTP 请求头由发送请求的一方写入,任何能够访

CVSS 9.8 · Critical
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-86863

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
pgAdmin 4: Authentication bypass via a client-controlled identity header in Webserver authentication mode
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
使用欺骗进行的认证绕过
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
pgadmin.org pgAdmin 4 6.2 ~ 9.18 -

II. Public POCs for CVE-2026-86863

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-86863

登录查看更多情报信息。

Mailing List Discussions for CVE-2026-86863 (1)

Same Patch Batch · pgadmin.org · 2026-09-17 · 4 CVEs total

CVE-2026-86864 8.8 HIGH pgAdmin 4: Argument and connection-string injection via the database field in the Backup t
CVE-2026-86862 6.5 MEDIUM pgAdmin 4: Connection-string injection via the database field in the Restore and Maintenan
CVE-2026-86861 5.9 MEDIUM pgAdmin 4: File Manager save_file writes through a symbolic link planted after the contain

IV. Related Vulnerabilities

V. Comments for CVE-2026-86863

No comments yet


Leave a comment