CVE-2026-7816: pgadmin.org pgAdmin Vulnerability

CVE-2026-7816

NVD

Vulnerability Summary

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.
Severity Level
HIGH(8.8)
Published Date
May 11, 2026
Last Modified
May 26, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
1.44%Probability
Root Weakness (CWE)
N/A
CVSS v4.0 Base Metrics — Score 8.7 (HIGH)
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredLow
User InteractionNone
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)High
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 8.8)
CVSS v3.1 Base Metrics — Score 8.8 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • pgadmin.org pgAdmin 4 >= 9.4 and < 9.15
Patched Versions
  • pgadmin.org pgAdmin 4 9.15

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is high.

  1. Check whether you run pgadmin.org pgAdmin and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • May 11, 2026Published
  • May 26, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new pgadmin.org pgAdmin CVEsYou are reading CVE-2026-7816. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 5, 2026 08:11 UTC