CVE-2026-86863
9.8 CRITICALpublic exploit availablePublished 2026-09-17 · Updated 2026-09-21
AI risk analysis
- Summary
- The flaw allows an attacker to bypass authentication by setting a specific HTTP header, enabling unauthorized access to administrative functions.
- Exploitability
- Exploitation is relatively easy as long as the attacker can send HTTP requests to the pgAdmin 4 server and the server is configured to trust the HTTP header for authentication.
- Blast radius
- If exploited, the attacker could gain full control over the pgAdmin 4 instance, potentially leading to data breaches or system compromise.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to pgAdmin 4 version 6.22 or later, as this version includes the necessary fix.
Analysis generated locally by qwen2.5:7b-instruct (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-290, CWE-807
Vendors
pgadmin
Products
pgadmin 4
Public exploit & PoC references
- https://github.com/pgadmin-org/pgadmin4/issues/10383[Issue Tracking, Patch, Vendor Advisory]
All references
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- CRITICALCVE-2026-62108
- CRITICALCVE-2026-92395PoC
- CRITICALCVE-2025-15399
- HIGHCVE-2025-51457
- CRITICALCVE-2025-66455PoC
- MEDIUMCVE-2025-71420PoC
- CRITICALCVE-2026-10050PoC
- HIGHCVE-2026-100520PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.