CVE-2026-12050: pgAdmin 4 - SQL Injection
- Cve: CVE-2026-12050
- Name: pgAdmin 4 - SQL Injection
- Description: SQL injection in pgAdmin 4's named restore point endpoint (POST /browser/server/restore_point/{gid}/{sid}). The user-supplied 'value' field was interpolated directly into the SQL string with str.format() instead of being passed as a bound parameter, allowing an authenticated pgAdmin user with a connected PostgreSQL session to inject additional statements through that endpoint. The injected SQL executes under the database role the user is already authenticated as. The defect does not cross a privilege boundary -- the user already has direct SQL access to that role through the Query Tool -- so the attacker gains no capability beyond what their database role already grants them. The marginal impact accounts for the fact that the injection path is not the documented SQL-execution interface, so a deployment that gates the Query Tool at the application layer could see SQL executed through a path it did not anticipate. Fix passes the restore point name as a bound parameter and schema-qualifies the function call as pg_catalog.pg_create_restore_point so a non-default search_path on the connection cannot redirect the call to a shadow definition. A regression test asserts the value arrives as a bound parameter and not spliced into the SQL string. This issue affects pgAdmin 4: from 1.0 before 9.16.
- Impact: Authenticated users can execute arbitrary SQL commands with their own database role privileges, potentially bypassing application-layer restrictions.
- Remediation: Update to version 9.16 or later.
- Vulnerability type: sql_injection
- Vulnerability impact: sql_injection
- Requirement type: logged_in
- Requirements: Attacker must be authenticated with a connected PostgreSQL session
- Labels source: projectdiscovery
- 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
- Epss score: 0.00426
- Epss percentile: 0.37385
- Assignee: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
- Published at: 2026-06-19T00:16:47Z
- Age in days: 158
- Modified at: 2026-10-25T23:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-12050
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/pgadmin-org/pgadmin4/commit/3379c39865d3ab6f52afce97361fb16bcdd77cd2 | nvd | Patch |
| https://github.com/pgadmin-org/pgadmin4/issues/10026 | nvd | Issue Tracking, Patch |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| pgadmin:pgadmin_4 | >= 1.0, < 9.16 | no | nvd | /v1/products/pgadmin/pgadmin_4 |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pgadmin-org/pgadmin4 | commit, fix, issues | yes | /v1/repositories/pgadmin-org/pgadmin4 |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts