CVE-2026-12045

HIGHNVD 8.89.0
EchelonGraph scoreHIGH 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 — 4 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.

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(high)
EPSS
38.1%
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 97× in last 7d / 246× 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 246 total refreshes for this CVE.

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

Frequently asked(5)

What is CVE-2026-12045?
CVE-2026-12045 is a high 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 38.1% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
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.