CVE-2026-7815
published high CVSS 4.0 · 8.7pgAdmin 4: SQL injection in Maintenance tool option values leading to remote code execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pgadmin.org | — | pgAdmin 47.6 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
SQL injection vulnerability in pgAdmin 4 Maintenance Tool. Four user-supplied JSON fields (buffer_usage_limit, vacuum_parallel, vacuum_index_cleanup, reindex_tablespace) were concatenated directly into the rendered VACUUM/ANALYZE/REINDEX command and passed to psql --command. An authenticated user with the tools_maintenance permission could break out of the option syntax and execute arbitrary SQL on the connected PostgreSQL server. The injected SQL could in turn invoke COPY ... TO PROGRAM to escalate to operating-system command execution on the database host. Fix introduces server-side allow-listing of all four fields and switches reindex_tablespace from manual quoting to the qtIdent filter. 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_maintenance permission. SQL injection escalates within the privileges already granted to the user's database connection; RCE via COPY ... TO PROGRAM additionally requires PostgreSQL superuser on the target connection. S:U reflects that the impact remains within the user's existing database privilege scope rather than crossing a security authority boundary.
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_maintenance permission. SQL injection escalates within the privileges already granted to the user's database connection; RCE via COPY ... TO PROGRAM additionally requires PostgreSQL superuser on the target connection. S:U reflects that the impact remains within the user's existing database privilege scope rather than crossing a security authority boundary. |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pgadmin.org | pgAdmin 4 | 7.6 to < 9.15 (affected · custom)Default: affected | PostgreSQL · cna |
Weaknesses
1- CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
1Provider assertions
2PostgreSQL · cna
pgAdmin 4: SQL injection in Maintenance tool option values leading to remote code execution
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9443a60813cdb586a0fbbe78e021224d98b4e0a5f15a873cdac6703e4ce811c7
- Ingested
- 23 Sep 2026, 09:34:17 UTC
- Source record
- Official CVE record