GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — LDAP and Kerberos authentication could log in to a different account sharing the username (CVE-2026-116239) · Issue #10675 · pgadmin-org/pgadmin4

LDAP and Kerberos authentication could log in to a different account sharing the username (CVE-2026-116239) #10675

New issue
Copy link
New issue
Copy link
Closed
Closed
LDAP and Kerberos authentication could log in to a different account sharing the username (CVE-2026-116239)#10675
Copy link

Description

@asheshv
asheshv
opened on Oct 24, 2026
Issue body actions

Summary

In server mode pgAdmin 4 keeps an account per authentication source, so the same username can exist as, for example, an internal account and an LDAP account. After LDAP or Kerberos authenticated a user, pgAdmin chose the account to log in by username alone, or took the account Flask-Security's login form had looked up, without checking that it came from the source that authenticated the user. The session therefore belonged to another account, with its role, its servers and its saved database passwords:

  • An LDAP or Kerberos user whose username matched an internal account was logged in as that internal account, including the administrator account created when pgAdmin is first set up.
  • With internal authentication listed before LDAP or Kerberos in AUTHENTICATION_SOURCES, the login form's internal validation looks up the account whose email was typed and keeps it even though its password does not match. A Kerberos user could type another Kerberos user's principal and be logged in as that user, and an LDAP user could do the same with an LDAP account whose email is their username.

Exploitation requires valid credentials for an LDAP directory or Kerberos realm that pgAdmin is configured to use.

The fix looks the account up by the authenticated username and the source that authenticated it, and no longer uses the account the login form found for any source but internal authentication. Internal authentication logs in that account only if it is an internal account. Desktop mode is not affected.

Affected versions

pgAdmin 4 >= 4.21, < 9.19.

Fix

Fixed in pgAdmin 4 9.19 by 7378060e5c8f7c3279b8138d371e13fd8b45a729 and 269e32d5ee01f2eb5de36e464d44487a831f2424.

Severity

  • CVSS 3.1: 8.5 HIGH — CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
  • CVSS 4.0: 8.9 HIGH — CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:N

Weaknesses

  • CWE-287 Improper Authentication
  • CWE-639 Authorization Bypass Through User-Controlled Key

Credit

Reported by Yves Soete of Blacksight LLC (@yssoe).

References

  • CVE: CVE-2026-116239
  • Release notes: pgAdmin 4 9.19

Activity

  1. asheshv
    added 6 commits that reference this issue on Oct 26, 2026

    Ensure LDAP authentication only logs in LDAP-sourced accounts. #10675

    7378060

    Ensure Kerberos and internal authentication only log in the account o…

    269e32d

    Fix logins and user management when an account shares its username or…

    2fc4b1f

    Show the user just added by setup.py add-external-user. #10675

    2bca0b3

    Make the LDAP login scenarios independent of each other and of their …

    d92fb68

    Give users added by setup.py the User role when no role is given. #10675

    d25a38f
  2. dpage
    changed the title [-]Internal tracking: pending fix for 9.19[/-] [+]LDAP and Kerberos authentication could log in to a different account sharing the username (CVE-2026-116239)[/+] on Nov 5, 2026
  3. dpage commented on Nov 5, 2026

    @dpage
    dpage
    on Nov 5, 2026
    Contributor
    More actions

    Fixed in pgAdmin 4 9.19, released on 29-10-2026.

    CVE: CVE-2026-116239

    Details (from the 9.19 release notes):

    Fix LDAP and Kerberos authentication logging a user in to a different account that shared their username: Kerberos and LDAP looked the account up by username alone, or accepted the account Flask-Security's internal validation had matched by the email typed, so a Kerberos or LDAP user could be logged in as an Internal account, including the initial administrator, or as another user (CVE-2026-116239). Accounts are now looked up by the authenticated username and the source that authenticated them, and only internal authentication logs in an account from its own form. Webserver users whose username matches an Internal account, and LDAP users with capitals in their username, now log in correctly, and setup.py can update a user without a role and add one without --role. Users who relied on being logged in to an Internal account of the same name now need an account of their own source. Reported by Yves Soete of Blacksight LLC (@yssoe).

    Commits:

    • 7378060 Ensure LDAP authentication only logs in LDAP-sourced accounts. LDAP and Kerberos authentication could log in to a different account sharing the username (CVE-2026-116239) #10675
    • 269e32d Ensure Kerberos and internal authentication only log in the account of the user they authenticated. LDAP and Kerberos authentication could log in to a different account sharing the username (CVE-2026-116239) #10675
    • 2fc4b1f Fix logins and user management when an account shares its username or email with one from another source. LDAP and Kerberos authentication could log in to a different account sharing the username (CVE-2026-116239) #10675
    • 2bca0b3 Show the user just added by setup.py add-external-user. LDAP and Kerberos authentication could log in to a different account sharing the username (CVE-2026-116239) #10675
    • d92fb68 Make the LDAP login scenarios independent of each other and of their order. LDAP and Kerberos authentication could log in to a different account sharing the username (CVE-2026-116239) #10675
    • d25a38f Give users added by setup.py the User role when no role is given. LDAP and Kerberos authentication could log in to a different account sharing the username (CVE-2026-116239) #10675
  4. dpage
    closed this as completedon Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.