Quick answers
- Is CVE-2026-12044 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-12044 being exploited in the wild.
- How severe is CVE-2026-12044?
- High severity, with a CVSS score of 8.8, published 19 June 2026.
- Which products and versions are affected?
- pgAdmin pgAdmin 4 1.0 to 9.15.
- Is there a fix for CVE-2026-12044?
- A patch was published on 2026-06-10: Initial fix and code-wide audit commits submitted. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-12044 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2026-12044?
- Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A SQL injection vulnerability exists in pgAdmin 4 (versions 1.0 through 9.15) across multiple Jinja2 SQL templates, including those for Domains, Foreign Tables, Languages, and Event Triggers. The root cause is the direct interpolation of user-supplied description fields into single-quoted SQL literals (e.g., '{{ data.description }}') instead of using the 'qtLiteral' escape filter. A secondary vector was identified in statistics templates (pgstattuple/pgstatindex) where identifiers containing apostrophes could break out of literals. An authenticated attacker with DDL privileges can exploit these sinks to execute arbitrary SQL under the context of their current PostgreSQL role. If the role has 'COPY FROM PROGRAM' privileges, this can lead to Remote Code Execution (RCE) on the database host. The issue is resolved in version 9.16 by enforcing 'qtLiteral' usage and hardening the driver to prevent silent unescaped returns.
Affected products
- pgAdmin pgAdmin 4 1.0 to 9.15
Timeline
- 2026-06-10: patched: Initial fix and code-wide audit commits submitted.
- 2026-06-19: advisory: CVE-2026-12044 published.
References
- https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/utils/driver/psycopg3/__init__.py
- https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/browser/server_groups/servers/databases/schemas/domains/templates/domains/sql/default/create.sql
- https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/tables/sql/16_plus/stats.sql
- https://github.com/pgadmin-org/pgadmin4/commit/2ae0d3610
- https://github.com/pgadmin-org/pgadmin4/commit/658bb585d
- https://github.com/pgadmin-org/pgadmin4/issues/10078