๐Ÿ›ก๏ธ CVE-2026-7816
๐ŸŸ  CVSS 8.8 โ€” High โœ… No Known Exploit CWE-78 NVD
8.8
CVSS Score
0 Low4 Medium7 High9 Critical10

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.

Details

Severity HIGH
CVSS Score 8.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE CWE-78
Public Exploit โœ… No
Source NVD
Published 2026-05-11
Updated 2026-06-09
Modified 2026-05-26

Affected Packages

Software From version Fixed in
pgadmin-4 9.4 9.15
pgadmin4 โ€” 9.15
unknown โ€” โ€”

References

Issue Tracking, Patch, Vendor Advisory https://github.com/pgadmin-org/pgadmin4/issues/9899

Similar Threats

Free Vulnerability Check

Is your WordPress site affected?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against known CVE records.

Scan My Site Free โ†’

No credit card required  ยท  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.