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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-7816— pgAdmin 4: OS command injection in Import/Export query export via psql metacommand breakout

CVSS 8.8 · High EPSS 0.20% · P42

Affected Version Matrix 1

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

I. Basic Information for CVE-2026-7816

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: OS command injection in Import/Export query export via psql metacommand breakout
Source: NVD (National Vulnerability Database)
Vulnerability Description
OS command injection (CWE-78) vulnerability in pgAdmin 4 Import/Export query export. User-supplied input was interpolated directly into a psql \copy metacommand template without sanitization. An authenticated user could inject ") TO PROGRAM 'cmd'" to break out of the \copy (...) context and achieve arbitrary command execution on the pgAdmin server, or ") TO '/path'" for arbitrary file write. Additional fields (format, on_error, log_verbosity) were also raw-interpolated and exploitable. Fix adds a parens-balance parser modeled on psql's strtokx tokenizer, allow-lists format/on_error/log_verbosity, rejects null bytes in the query, and tightens type and gating checks. This issue affects pgAdmin 4: before 9.15.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
pgAdmin SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
pgAdmin是pgAdmin开源的一个用于开源数据库 PostgreSQL 的开源管理和开发平台。 pgAdmin 4 9.15之前版本存在SQL注入漏洞,该漏洞源于可能导致经过身份验证的用户在psql copy元命令中注入任意命令,实现任意命令执行或任意文件写入。
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 9.4 ~ 9.15 -

II. Public POCs for CVE-2026-7816

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-7816

登录查看更多情报信息。

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-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-78206.5 MEDIUMpgAdmin 4: Account-lockout bypass via Flask-Security default /login view
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-7816

No comments yet


Leave a comment