SCA: security update for pgadmin4 (GHSA-j74f-g7vx-fh4x)

high Tenable Cloud Security Plugin ID 442100

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2026-7816)

Solution

Update the pgadmin4 library and its related packages to version 9.15 or later.

See Also

https://github.com/advisories/GHSA-j74f-g7vx-fh4x

Plugin Details

Severity: High

ID: 442100

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 5/18/2026

Updated: 6/8/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.85

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-7816

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 8.7

Threat Score: 6.3

Threat Vector: CVSS:4.0/E:U

Vector: 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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/11/2026

Vulnerability Publication Date: 5/11/2026

Reference Information

CVE: CVE-2026-7816

cwe: CWE-89