{"id":"CVE-2026-7820","published":"2026-05-11T14:35:53Z","modified":"2026-05-11T16:04:54Z","title":"pgAdmin 4: Account-lockout bypass via Flask-Security default /login view","vendor":"pgadmin.org","product":"pgAdmin 4","tier":"tail","description":{"text":"Improper restriction of excessive authentication attempts (CWE-307) in pgAdmin 4.\n\npgAdmin enforces MAX_LOGIN_ATTEMPTS only inside its custom /authenticate/login view. Flask-Security's default /login view, which is registered automatically by security.init_app() and is reachable on every server, never consulted the User.locked field: pgAdmin's User model relied on Flask-Security's UserMixin.is_locked() (which always returns 'not locked') and Flask-Login's is_active (which only checks the active column, not locked). An attacker who triggered an account lockout via /authenticate/login could therefore obtain a session by re-submitting valid credentials directly to /login, defeating the brute-force-protection control for accounts using the INTERNAL authentication source. The same bypass also means that login attempts via /login are never rate-limited, so an attacker can perform an unbounded online password-guessing attack against INTERNAL accounts regardless of MAX_LOGIN_ATTEMPTS.\n\nFix overrides User.is_active and User.is_locked() so the locked column is enforced on every authentication path. LDAP, OAuth2, Kerberos, and Webserver users are not reachable by this bypass because they have no local password and are rejected by Flask-Security's LoginForm.validate before the locked check; the lockout itself is also internal-only (the /authenticate/login view filters by auth_source=INTERNAL).\n\nThis issue affects pgAdmin 4: before 9.15.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00211,"percentile":0.11503,"provenance":"source"},"cwes":[{"id":"CWE-307","name":"Improper Restriction of Excessive Authentication Attempts"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/9904","tags":["issue-tracking"]}],"priority":{"score":6.9,"factors":[{"name":"EPSS percentile","points":2.3},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"pgadmin-org","affectedVersions":[{"vendor":"pgadmin.org","product":"pgAdmin 4","versions":["< 9.15"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-11T16:04:51.073510Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pgadmin4","vulnerableRanges":["<9.15"],"patched":["9.15"],"from":["GHSA-hv9p-2pqf-r5w3","PYSEC-2026-2869"],"provenance":"source"}],"summary":{"text":"pgAdmin 4 (before 9.15) has a flaw in its authentication handling: the account-lockout control enforced in pgAdmin's custom /authenticate/login view is not applied to Flask-Security's default /login view, which is always exposed, so the locked state of INTERNAL accounts is never checked there. An attacker with network access to the server can submit valid credentials to /login to obtain a session after a lockout and can guess passwords against INTERNAL accounts without rate limiting, requiring no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:35Z"},"euvd":{"id":"EUVD-2026-29088","exploited":false,"provenance":"source"}}