CVE-2026-7820 in Pgadmin 4
Improper restriction of excessive authentication attempts (CWE-307) in pgAdmin 4. pgAdmin 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 ...
Affects 1 product from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no availability impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Improper restriction of excessive authentication attempts (CWE-307) in pgAdmin 4. pgAdmin 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. Fix 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). This issue affects pgAdmin 4: before 9.15.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-7820 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-154624-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| Published | 2026-05-11 |
| Last modified | 2026-10-26 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-307: CWE-307
Related attack patterns (CAPEC)
CAPEC-16 Dictionary-based Password Attack via CWE-307
CAPEC-565 Password Spraying via CWE-307
CAPEC-49 Password Brute Forcing via CWE-307
CAPEC-600 Credential Stuffing via CWE-307
CAPEC-652 Use of Known Kerberos Credentials via CWE-307
Show all 7
CAPEC-653 Use of Known Operating System Credentials via CWE-307
CAPEC-560 Use of Known Domain Credentials via CWE-307
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
pgAdmin 4 is vulnerable to excessive authentication attempts due to improper restriction in Flask-Security's default /login view, which does not consult the User.locked field.
An attacker can exploit this vulnerability by repeatedly attempting to log in with incorrect credentials, potentially leading to unauthorized access if the MAX_LOGIN_ATTEMPTS is not enforced on the Flask-Security's default /login view.
Questions
What is CVE-2026-7820?
pgAdmin 4 is vulnerable to excessive authentication attempts due to improper restriction in Flask-Security's default /login view, which does not consult the User.locked field.
What is the CVSS score for CVE-2026-7820?
CVE-2026-7820 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N. EPSS: 0.3%.
Is CVE-2026-7820 actively exploited?
No confirmed active exploitation of CVE-2026-7820 as of 2026-11-03.
How do I remediate CVE-2026-7820?
Priority: HIGH.
What systems are affected by CVE-2026-7820?
CVE-2026-7820 affects Pgadmin Pgadmin 4; Valid.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Pgadmin","product":"Pgadmin 4","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-26.