CVE-2026-12044

HIGHPre-NVD 8.88.8
EchelonGraph scoreHIGH confidence

Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2026-06-19. a secondary CVSS source baseline 8.8; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: epss, ghsa, secondary
Trending — 3 sources updated this week
8.8
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 0%CVSS: 8.8Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

SQL injection in pgAdmin 4 across every dialog template that renders `COMMENT ON ... IS '' for a user-supplied description field. The Jinja templates for Domains (and their constraints), Foreign Tables, Languages, and Event Triggers, plus the Views OID-lookup query, interpolated the description directly inside a single-quoted SQL literal -- '{{ data.description }}' -- instead of passing it through the qtLiteral escape filter. An authenticated pgAdmin user with permission to create or alter the affected object types could submit a description containing an apostrophe, break out of the literal and chain arbitrary SQL. The injected SQL runs under the PostgreSQL role the user is already authenticated as; for a connected role with COPY ... TO/FROM PROGRAM (typically PostgreSQL superuser), this chains to OS command execution on the PostgreSQL host. The defect does not cross a privilege boundary -- the user already has direct SQL access to that role through pgAdmin's Query Tool -- so the attacker gains no capability beyond what their database role already grants. The marginal impact captures bypass of any application-layer Query Tool gating an operator may have configured.

The defect was originally reported against the Domain Dialog description field; a code-wide audit identified sixteen sites of the same pattern across the templates listed above. The same review also surfaced ten related sinks in the pgstattuple/pgstatindex stats templates -- pgstattuple('{{schema}}.{{table}}') and the matching pgstatindex shape -- where qtIdent escapes embedded double quotes inside the identifier but not apostrophes, so a user with CREATE privilege on a schema could plant a table or index named foo'bar and a later stats viewer would render an unbalanced literal.

Fix is layered:

  • Sites: replace every '{{ x.description }}' with {{ x.description|qtLiteral(conn) }} (no surrounding quotes -- the filter wraps the value in escaped quotes itself). Plumb conn=self.conn through every render_template call that loads one of these templates. Also corrects a { % elif Jinja typo in the foreign-table schema diff (dead branch). Rewrite the ten pgstattuple/pgstatindex stats sites to address the relation via OID + ::oid::regclass cast (e.g. pgstattuple({{ tid }}::oid::regclass)), eliminating the embedded literal-call form entirely so that bug-class can no longer recur there.
  • Driver hardening: qtLiteral (in utils/driver/psycopg3/__init__.py) used to silently return the raw unescaped value when its conn argument was falsy. It now raises ValueError -- surfacing the entire bug class going forward. The change immediately uncovered eight latent plumbing bugs (in schemas/__init__.py, schemas/functions/__init__.py, schemas/tables/utils.py, foreign_servers/__init__.py, and seven sites in roles/__init__.py) -- all fixed as part of this patch. The inner except block that swallowed adapter-level failures and returned the raw value is also removed, so unadaptable inputs raise instead of leaking unescaped values.
  • Regression tests: a per-template behavioural test renders each previously-vulnerable template with an apostrophe-injection payload and asserts the escaped fragment is present and the vulnerable fragment absent; a lint test walks every *.sql template flagging any '{{ ... }}'` single-quote-wrapped interpolation against an explicit allowlist; unit tests cover the new qtLiteral fail-fast and inner-except raise paths.

This issue affects pgAdmin 4: from 1.0 before 9.16.

CVSS v3
8.8
EG Score
8.8(high)
EPSS
38.6%
KEV
Not listed

Published

June 19, 2026

Last Modified

July 1, 2026

Advisory Details (3)

Auto-updated Jun 22, 2026
Upstream fix merged — awaiting tagged release. Sources: github_commit.
generic

SQL injection via comment and description fields in dialog SQL templates (CVE-2026-12044) · Issue #10078 · pgadmin-org/pgadmin4 · GitHub

https://github.com/pgadmin-org/pgadmin4/issues/10078
github_commit

commit 658bb585d (pgadmin-org/pgadmin4)

Fix landed in pgadmin-org/pgadmin4 commit 658bb585d — awaiting tagged release

https://github.com/pgadmin-org/pgadmin4/commit/658bb585d
github_commit

commit 2ae0d3610 (pgadmin-org/pgadmin4)

Fix landed in pgadmin-org/pgadmin4 commit 2ae0d3610 — awaiting tagged release

https://github.com/pgadmin-org/pgadmin4/commit/2ae0d3610

Vendor Advisories for CVE-2026-12044(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Weakness Classification(2)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 34× in last 7d / 85× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-07-07 03:16 UTCEG score recompute
  2. 2026-07-07 03:16 UTCGHSA enrichment
  3. 2026-07-06 16:27 UTCEPSS rescore
  4. 2026-07-06 14:07 UTCEG score recompute
  5. 2026-07-06 14:07 UTCGHSA enrichment
  6. 2026-07-06 02:23 UTCEPSS rescore
  7. 2026-07-06 00:54 UTCEG score recompute
  8. 2026-07-06 00:54 UTCGHSA enrichment
  9. 2026-07-05 11:45 UTCEG score recompute
  10. 2026-07-05 11:45 UTCGHSA enrichment
  11. 2026-07-05 02:30 UTCEPSS rescore
  12. 2026-07-05 02:30 UTCEPSS rescore
  13. 2026-07-04 22:36 UTCEG score recompute
  14. 2026-07-04 22:36 UTCGHSA enrichment
  15. 2026-07-04 09:27 UTCEG score recompute
  16. 2026-07-04 09:27 UTCGHSA enrichment
  17. 2026-07-04 06:31 UTCEPSS rescore
  18. 2026-07-03 20:17 UTCEG score recompute
  19. 2026-07-03 20:17 UTCGHSA enrichment
  20. 2026-07-03 07:08 UTCEG score recompute
  21. 2026-07-03 07:08 UTCGHSA enrichment
  22. 2026-07-02 17:58 UTCEG score recompute
  23. 2026-07-02 17:58 UTCGHSA enrichment
  24. 2026-07-02 04:48 UTCEG score recompute
  25. 2026-07-02 04:48 UTCGHSA enrichment
Show 60 more
  1. 2026-07-01 15:40 UTCEG score recompute
  2. 2026-07-01 15:40 UTCGHSA enrichment
  3. 2026-07-01 15:06 UTCEPSS rescore
  4. 2026-07-01 15:06 UTCEPSS rescore
  5. 2026-07-01 02:31 UTCEG score recompute
  6. 2026-07-01 02:31 UTCGHSA enrichment
  7. 2026-06-30 23:22 UTCEPSS rescore
  8. 2026-06-30 13:22 UTCEG score recompute
  9. 2026-06-30 13:21 UTCGHSA enrichment
  10. 2026-06-30 00:12 UTCEG score recompute
  11. 2026-06-30 00:12 UTCGHSA enrichment
  12. 2026-06-29 14:06 UTCEPSS rescore
  13. 2026-06-29 11:04 UTCEG score recompute
  14. 2026-06-29 11:03 UTCGHSA enrichment
  15. 2026-06-28 21:54 UTCEG score recompute
  16. 2026-06-28 21:54 UTCGHSA enrichment
  17. 2026-06-28 14:07 UTCEPSS rescore
  18. 2026-06-28 08:45 UTCEG score recompute
  19. 2026-06-28 08:45 UTCGHSA enrichment
  20. 2026-06-28 04:56 UTCEPSS rescore
  21. 2026-06-28 04:56 UTCEPSS rescore
  22. 2026-06-27 19:36 UTCEG score recompute
  23. 2026-06-27 19:36 UTCGHSA enrichment
  24. 2026-06-27 06:26 UTCEG score recompute
  25. 2026-06-27 06:25 UTCGHSA enrichment
  26. 2026-06-27 03:08 UTCEPSS rescore
  27. 2026-06-26 17:15 UTCEG score recompute
  28. 2026-06-26 17:15 UTCGHSA enrichment
  29. 2026-06-26 04:06 UTCEG score recompute
  30. 2026-06-26 04:06 UTCGHSA enrichment
  31. 2026-06-25 14:56 UTCEG score recompute
  32. 2026-06-25 14:56 UTCGHSA enrichment
  33. 2026-06-25 13:49 UTCEPSS rescore
  34. 2026-06-25 01:46 UTCEG score recompute
  35. 2026-06-25 01:46 UTCGHSA enrichment
  36. 2026-06-24 14:05 UTCEPSS rescore
  37. 2026-06-24 12:37 UTCEG score recompute
  38. 2026-06-24 12:37 UTCGHSA enrichment
  39. 2026-06-23 23:17 UTCEG score recompute
  40. 2026-06-23 23:16 UTCGHSA enrichment
  41. 2026-06-23 21:32 UTCEPSS rescore
  42. 2026-06-23 10:07 UTCEG score recompute
  43. 2026-06-23 10:07 UTCGHSA enrichment
  44. 2026-06-22 20:57 UTCEG score recompute
  45. 2026-06-22 20:57 UTCGHSA enrichment
  46. 2026-06-22 19:38 UTCNVD updateCVSS v4 → 8.7
  47. 2026-06-22 07:45 UTCEG score recompute
  48. 2026-06-22 07:45 UTCGHSA enrichment
  49. 2026-06-21 18:34 UTCEG score recompute
  50. 2026-06-21 18:34 UTCGHSA enrichment
  51. 2026-06-21 05:24 UTCEG score recompute
  52. 2026-06-21 05:24 UTCGHSA enrichment
  53. 2026-06-20 16:14 UTCEG score recompute
  54. 2026-06-20 16:13 UTCGHSA enrichment
  55. 2026-06-20 03:03 UTCEG score recompute
  56. 2026-06-20 03:03 UTCGHSA enrichment
  57. 2026-06-19 13:54 UTCEG score recompute
  58. 2026-06-19 13:53 UTCGHSA enrichment
  59. 2026-06-19 00:44 UTCEG score recompute
  60. 2026-06-19 00:44 UTCGHSA enrichment

Frequently asked(5)

What is CVE-2026-12044?
CVE-2026-12044 is a high vulnerability published on June 19, 2026. SQL injection in pgAdmin 4 across every dialog template that renders COMMENT ON ... IS '<description>' for a user-supplied description field. The Jinja templates for Domains (and their constraints), Foreign Tables, Languages, and Event Triggers, plus the Views OID-lookup query, interpolated the…
When was CVE-2026-12044 disclosed?
CVE-2026-12044 was first published in the National Vulnerability Database on June 19, 2026, with the most recent update on July 1, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-12044 actively exploited?
CVE-2026-12044 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 38.6% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-12044?
CVE-2026-12044 has a CVSS v3 base score of 8.8 (NVD).
How do I remediate CVE-2026-12044?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-12044, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

Explore the affected products and dependency analysis for CVE-2026-12044

Explore →

Is Your Infrastructure Affected by CVE-2026-12044?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.