8.8

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

Modified
AliasesGHSA-j74f-g7vx-fh4xPYSEC-2026-2870CGA-283f-fw4h-4fq2
Published 11-05-2026Last modified 26-05-2026

Vulnerability summary

CVE-2026-7816 is a high (CVSS 8.8) vulnerability in pgadmin pgadmin_4. EPSS estimates a 1.44% chance of exploitation in the next 30 days, higher than 73.2% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
1.44%
0%100%
Low · -0.74 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 2

Timeline

  1. 11-05-2026
    PublishedVulnerability first disclosed.
  2. 26-05-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 4 sources · 2 versions

EPSS trend

Probability

1.44%

Chance of exploitation in the next 30 days

Percentile

73%

Versus all other CVEs

30-day change

Decrease -0.74 pp

From 2.18% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard1 product
  • pgadmin4< 9.15-r0 | < 9.15-r1
Pgadmin1 product
Pgadmin.org1 product
PyPI1 product
  • pgadmin4< 9.15

4 vendors · 4 products

References

7 links