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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-7820— pgAdmin 4: Account-lockout bypass via Flask-Security default /login view

CVSS 6.5 · Medium EPSS 0.04% · P11

Affected Version Matrix 1

VendorProductVersion RangeStatus
pgadmin.orgpgAdmin 4< 9.15affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-7820

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: Account-lockout bypass via Flask-Security default /login view
Source: NVD (National Vulnerability Database)
Vulnerability 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: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
pgAdmin 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
pgAdmin是pgAdmin开源的一个用于开源数据库 PostgreSQL 的开源管理和开发平台。 pgAdmin 4 9.15之前版本存在安全漏洞,该漏洞源于身份验证尝试限制不当,可能导致攻击者绕过账户锁定机制,进行无限制的在线密码猜测攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
pgadmin.orgpgAdmin 4 0 ~ 9.15 -

II. Public POCs for CVE-2026-7820

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-7820

登录查看更多情报信息。

Same Patch Batch · pgadmin.org · 2026-05-11 · 8 CVEs total

CVE-2026-78139.9 CRITICALpgAdmin 4: Cross-user data access and shared-server privilege escalation in server mode
CVE-2026-78158.8 HIGHpgAdmin 4: SQL injection in Maintenance tool option values leading to remote code executio
CVE-2026-78168.8 HIGHpgAdmin 4: OS command injection in Import/Export query export via psql metacommand breakou
CVE-2026-78198.1 HIGHpgAdmin 4: Symbolic-link path traversal in File Manager allows arbitrary file write
CVE-2026-78187.0 HIGHpgAdmin 4: Unsafe deserialization (CWE-502) in file-backed session manager leads to remote
CVE-2026-78176.5 MEDIUMpgAdmin 4: Local file inclusion and server-side request forgery in LLM API configuration e
CVE-2026-78144.8 MEDIUMpgAdmin 4: Stored XSS via crafted PostgreSQL object names in Browser Tree and Explain Visu

IV. Related Vulnerabilities

V. Comments for CVE-2026-7820

No comments yet


Leave a comment