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

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
pgadmin.org pgAdmin 4
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

pgAdmin是pgAdmin开源的一个用于开源数据库 PostgreSQL 的开源管理和开发平台。 pgAdmin 4 9.15之前版本存在安全漏洞,该漏洞源于身份验证尝试限制不当,可能导致攻击者绕过账户锁定机制,进行无限制的在线密码猜测攻击。

CVSS 6.5 · Medium EPSS 0.21% · P12

Affected Version Matrix 1

VendorProduct Version RangeStatus
pgadmin.org pgAdmin 4 < 9.15 affected
Get alerts for future matching vulnerabilities Log 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: CVE Program / CVE List V5
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: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
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

Vendor Product Affected Versions CPE Subscribe
pgadmin.org pgAdmin 4 0 ~ 9.15 -

II. Public POCs for CVE-2026-7820

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-7820

登录查看更多情报信息。

Other References for CVE-2026-7820 (1)

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

CVE-2026-7813 9.9 CRITICAL pgAdmin 4: Cross-user data access and shared-server privilege escalation in server mode
CVE-2026-7815 8.8 HIGH pgAdmin 4: SQL injection in Maintenance tool option values leading to remote code executio
CVE-2026-7816 8.8 HIGH pgAdmin 4: OS command injection in Import/Export query export via psql metacommand breakou
CVE-2026-7819 8.1 HIGH pgAdmin 4: Symbolic-link path traversal in File Manager allows arbitrary file write
CVE-2026-7818 7.0 HIGH pgAdmin 4: Unsafe deserialization (CWE-502) in file-backed session manager leads to remote
CVE-2026-7817 6.5 MEDIUM pgAdmin 4: Local file inclusion and server-side request forgery in LLM API configuration e
CVE-2026-7814 4.8 MEDIUM pgAdmin 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