Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-12050

published medium CVSS 4.0 · 5.3

pgAdmin 4: SQL injection in named restore point endpoint

Published
18 Jun 2026, 23:37:19 UTC
Updated
22 Jun 2026, 19:10:39 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
pgadmin.org — pgAdmin 41.0 to < 9.16 · Other versions: unaffected 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 / vendorReleasePackage / productPublisher statusFixed buildSource
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 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.

en · PostgreSQL · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
4.0
Base score
5.3 / 10
Severity
medium
Provider
PostgreSQL · cna
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Scenarios
en: Same reasoning as CVSS 3.1: the attacker already authenticates as the database role they would invoke through the supported Query Tool, so no new vulnerable-system or subsequent-system capability is granted. The marginal VI:L acknowledges the bypass of any application-layer Query Tool gating an operator may have set up, even though pgAdmin does not document or support such gating.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 4.3 medium PostgreSQL · cna CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N en: The attacker is an authenticated pgAdmin user with an established PostgreSQL connection. The injected SQL runs under the PostgreSQL role the user is already authenticated as, so it obtains no read access beyond what their database role already grants them through the supported Query Tool. The marginal integrity impact (I:L) acknowledges that the injection path is not the documented SQL-execution interface, so a deployment that gates the Query Tool at the application layer (for example by hiding the Query Tool UI from certain pgAdmin roles) could see SQL executed it did not anticipate, even though pgAdmin itself does not document or support such gating. Scope is unchanged: pgAdmin does not mediate a privilege boundary between the user and the database; the user supplied those credentials themselves. PoCs that use COPY TO PROGRAM or COPY FROM to read or write files on the PostgreSQL host rely on the connected role already being a PostgreSQL superuser; those operations are available to any superuser through normal SQL execution and are not capabilities granted by this defect. Reviewer note (Dave Page, 2026-06-11): score is sound but mildly generous -- I:L for Query-Tool-gating bypass is charitable since the injection grants the attacker nothing their database role does not already permit through the supported Query Tool. A strict reading would land at I:N (2.7 LOW); 4.3 retained as the conservative-toward-higher choice.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
pgadmin.org pgAdmin 4 1.0 to < 9.16 (affected · custom)Default: unaffected PostgreSQL · cna

Weaknesses

1
  • CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (PostgreSQL · cna)

References

2

Provider assertions

2

PostgreSQL · cna

pgAdmin 4: SQL injection in named restore point endpoint

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
76e5914c84a02be9f34f13fe79abc7cd80db7991ca9a0aa2efdf18f8a0a5afba
Ingested
23 Sep 2026, 09:00:57 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected