GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OS command injection in Import/Export query export (CVE-2026-7816) · Issue #9899 · pgadmin-org/pgadmin4

OS command injection in Import/Export query export (CVE-2026-7816) #9899

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
OS command injection in Import/Export query export (CVE-2026-7816)#9899
Bug
Copy link
Labels
Bug

Description

@asheshv
asheshv
opened on May 1, 2026
Issue body actions

Summary

OS command injection (CWE-78) in the 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.

The 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.

Affected versions

pgAdmin 4 >= 9.4, < 9.15

Fix

Fixed in pgAdmin 4 9.15 by commit 13badc62c.

Severity

  • CVSS 3.1: 8.8 (HIGH) — AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • CVSS 4.0: 8.7 (HIGH) — AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Credit

Reported by Chung Kim (chungkn), OneMount Group.

References

  • CVE: CVE-2026-7816
  • Release notes: pgAdmin 4 9.15

Activity

  1. asheshv
    added 2 commits that reference this issue on May 6, 2026

    fix: Prevent OS command injection in Import/Export query export (CWE-…

    13badc6

    docs: assign CVE IDs to v9.15 release-notes placeholders

    ba9ff51
  2. asheshv
    changed the title [-]Internal tracking: pending fix for 9.15[/-] [+]OS command injection in Import/Export query export (CVE-2026-7816)[/+] on May 11, 2026
  3. asheshv
    closed this as completedon May 11, 2026
  4. asheshv
    added
    Bug
    on May 11, 2026
  5. asheshv
    added the
    Bug
    issue type on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.