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
9.0EG
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS PROB: 1%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%
Exploitation1% × 40%
Automatability0% × 15%
Action: Routine — remediate on your standard cadence.
EPSS PROB
1%
EPSS %ILE
49%
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 6× in last 7d / 92× 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 433 total refreshes for this CVE.

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