CVE-2026-7816
published high CVSS 4.0 · 8.7pgAdmin 4: OS command injection in Import/Export query export via psql metacommand breakout
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pgadmin.org | — | pgAdmin 49.4 to < 9.15 · Other versions: affected | Affected | Not stated | PostgreSQL |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4aarch64 | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4ppc64le | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4s390x | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4x86_64 | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-desktopaarch64 | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-desktopppc64le | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-desktops390x | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-desktopx86_64 | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-docaarch64 | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-docppc64le | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-docs390x | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-docx86_64 | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-web-uwsgiaarch64 | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-web-uwsgippc64le | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-web-uwsgis390x | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pgadmin4-web-uwsgix86_64 | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | system-user-pgadminaarch64 | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | system-user-pgadminppc64le | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | system-user-pgadmins390x | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | system-user-pgadminx86_64 | Advisory build | 9.17-1.1 | OPENSUSE-SU-2026:11508-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- PostgreSQL · cna
- Vector string
- 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
- Scenarios
- en: Authenticated pgAdmin user with tools_import_export permission. Command execution occurs in the pgAdmin process, which is the same security authority as the application itself; S:U reflects no scope change. Whether this is a privilege escalation depends on whether the attacker had other shell access to the pgAdmin host.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | PostgreSQL · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | en: Authenticated pgAdmin user with tools_import_export permission. Command execution occurs in the pgAdmin process, which is the same security authority as the application itself; S:U reflects no scope change. Whether this is a privilege escalation depends on whether the attacker had other shell access to the pgAdmin host. |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pgadmin.org | pgAdmin 4 | 9.4 to < 9.15 (affected · custom)Default: affected | PostgreSQL · cna |
Weaknesses
1- CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
1Provider assertions
2PostgreSQL · cna
pgAdmin 4: OS command injection in Import/Export query export via psql metacommand breakout
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 97b65befe56c24224e5a2ec33bd4d7d79e2823811af5e046f5797b158da5b71b
- Ingested
- 23 Sep 2026, 09:34:17 UTC
- Source record
- Official CVE record