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.02179
cvss_score
8.8
retrieved_at
2026-10-07T08:52:52+00:00
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
last_source
FIRST EPSS
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
signal_observed_at
2026-09-11T17:55:57+00:00
is_ghsa_only
false
epss_percentile
0.81753

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