highCVSS 8.8Vulnerability

CVE-2026-7816

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.

Properties

summary
pgAdmin 4: OS command injection vulnerability in Import/Export query export
severity
high
epss_score
0.01444
cvss_score
8.8
ghsa_published
2026-05-11T18:31:44Z
source_url
https://github.com/advisories/GHSA-j74f-g7vx-fh4x
ghsa_updated
2026-05-18T14:31:21Z
ghsa_id
GHSA-j74f-g7vx-fh4x
cve_id
CVE-2026-7816
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
is_ghsa_only
false
epss_percentile
0.71231

Related Entities (5)

ENRICHED_BY (1)

[Source]FIRST EPSS

HAS_WEAKNESS (1)

[Weakness]Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (1)

[Software]pip/pgadmin4

AFFECTS (1)

[Software]pip/pgadmin4

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-7816 (CVSS 8.8) — Ninja Signal Threat Intelligence | Ninja Signal