Impact
The flaw in pgAdmin 4 allows a low‑privileged user to create objects whose names contain a single quote. When an arbitrary user opens the Statistics or Dependencies tab for such an object, the application injects the unescaped name into a Jinja2 template, causing the browser to send a malformed SQL statement that is executed in the database session. This results in arbitrary SQL execution without authentication, violating confidentiality and integrity.
Affected Systems
The vulnerability affects pgAdmin 4 as delivered by pgAdmin.org. The Index Statistics sink is susceptible in all releases from version 1.0 up until 9.17, and the Publications/Subscriptions sinks are vulnerable in releases from version 5.0 up until 9.17.
Risk and Exploitability
The flaw carries a CVSS score of 8.7, an EPSS score of less than 1%, and is not yet listed in the CISA KEV catalog. Exploitation requires a low‑privileged user to create an object (table, publication, or subscription) with a name containing an apostrophe, then another user must view that object's Statistics or Dependencies tab. Because no authentication barrier exists for viewing these tabs, a wide range of users could trigger the injection, making the vulnerability readily exploitable in environments where object creation privileges are not tightly controlled.
OpenCVE Enrichment