CVE-2026-12045

CRITICALNVD 8.89.0
EchelonGraph scoreMEDIUM confidence

Score 9.0 from GitHub Security Advisory (severity: CRITICAL) published 2026-06-19. NVD baseline CVSS 8.8; sources differ by 0.2.

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

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

Read-only transaction bypass in the pgAdmin 4 AI Assistant allows an attacker who can influence database content that the assistant reads to execute arbitrary SQL with the privileges of the pgAdmin user's database role.

The AI Assistant's execute_sql_query tool runs LLM-generated SQL inside a BEGIN TRANSACTION READ ONLY wrapper to prevent data modification. The LLM-supplied query was forwarded to the database driver without restriction to a single statement or to read-only verbs, so a multi-statement payload beginning with COMMIT, END, ROLLBACK, or ABORT terminated the read-only transaction and ran subsequent statements in autocommit mode. The trailing ROLLBACK then had no effect.

Delivery is via prompt injection: an attacker who can write content into any object the AI Assistant may inspect (a row, a column value, a comment) can cause the LLM to emit the multi-statement payload as a tool call. With ordinary write privileges on the pgAdmin user's role the attacker can perform unauthorised data modification. When the pgAdmin user's role is a PostgreSQL superuser or holds pg_execute_server_program, the chain extends to remote code execution on the database server host via COPY ... TO PROGRAM.

Fix validates the LLM-supplied query up front: it must parse to exactly one non-empty / non-comment statement whose leading real token (after stripping whitespace, comments, and punctuation) is one of SELECT, WITH, EXPLAIN, SHOW, VALUES, or TABLE. Transaction-control verbs, DML, DDL, CALL, COPY, DO, SET/RESET, and everything else are rejected before any database work happens. PostgreSQL's READ ONLY mode continues to backstop data-modifying CTEs, EXPLAIN ANALYZE on writes, and volatile side effects.

This issue affects pgAdmin 4: from 9.13 before 9.16.

CVSS v3
8.8
EG Score
9.0(medium)
EG Risk
41(Track)
EG Risk 41/100SSVC: Track

EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).

How it’s computed
Severity90% × 45%
Exploitation0% × 40%
Automatability0% × 15%
Action: Routine — remediate on your standard cadence.
EPSS PROB
0%
EPSS %ILE
39%
KEV
Not listed

Published

June 19, 2026

Last Modified

July 1, 2026

Advisory Details (2)

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

AI Assistant read-only transaction bypass (CVE-2026-12045) · Issue #10022 · pgadmin-org/pgadmin4 · GitHub

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

commit bf4792444446 (pgadmin-org/pgadmin4)

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

https://github.com/pgadmin-org/pgadmin4/commit/bf4792444446f0e7ab721d23cbd6bfe6afaa7a8b

Vendor Advisories for CVE-2026-12045(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 23× in last 7d / 161× 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.

Showing the most recent 100 of 233 total refreshes for this CVE.

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

Frequently asked(5)

What is CVE-2026-12045?
CVE-2026-12045 is a critical vulnerability published on June 19, 2026. Read-only transaction bypass in the pgAdmin 4 AI Assistant allows an attacker who can influence database content that the assistant reads to execute arbitrary SQL with the privileges of the pgAdmin user's database role. The AI Assistant's executesqlquery tool runs LLM-generated SQL inside a BEGIN…
When was CVE-2026-12045 disclosed?
CVE-2026-12045 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-12045 actively exploited?
CVE-2026-12045 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 0% probability of exploitation in the next 30 days, which ranks it in the top 61.1% of all scored CVEs.
What is the CVSS score of CVE-2026-12045?
CVE-2026-12045 has a CVSS v3 base score of 8.8 (NVD). EchelonGraph synthesises NVD + CISA KEV + FIRST EPSS + GHSA into a combined EG score of 9.0.
How do I remediate CVE-2026-12045?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-12045, 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-12045

Explore →

Is Your Infrastructure Affected by CVE-2026-12045?

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