CVE-2026-7816: OS command injection (CWE-78) vulnerability in pgAdmin 4 Import/Export query export. User-supplied input was
CVE-2026-7816 is a high-severity flaw (CVSS 8.8) affecting pgadmin 4. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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) we
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 1.4% (top 27%) |
| CISA exploited list | No |
| Weakness | CWE-78 |
| Published | 2026-05-11 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-7816?
pgadmin 4: upgrade to 9.15. Exact commands for each OS are on this page.
Is CVE-2026-7816 being exploited?
CVE-2026-7816 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-7816 affect?
CVE-2026-7816 affects pgadmin 4. Severity is high (CVSS 8.8). 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 PROGRA
How urgent is CVE-2026-7816?
Priority 49/100. High severity
Related CVEs
- CVE-2026-7813 CRITICAL 9.9 UPGRADE Authorization vulnerability in pgAdmin 4 server mode affecting Server Groups, Servers, Shared Servers, Backgro
- CVE-2026-7815 HIGH 8.8 UPGRADE SQL injection vulnerability in pgAdmin 4 Maintenance Tool. Four user-supplied JSON fields (buffer_usage_limit
- CVE-2026-7819 HIGH 8.1 UPGRADE Symbolic-link path traversal (CWE-61, CWE-22) in pgAdmin 4 File Manager. check_access_permission used os.path
- CVE-2026-7820 MEDIUM 6.5 UPGRADE Improper restriction of excessive authentication attempts (CWE-307) in pgAdmin 4. pgAdmin enforces MAX_LOGIN_
- CVE-2026-7817 MEDIUM 6.5 UPGRADE Local file inclusion (LFI) and server-side request forgery (SSRF) vulnerabilities in pgAdmin 4 LLM API configu