CVE-2026-17351

CRITICALNVD 9.09.0
EchelonGraph scoreMEDIUM confidence

Score 9.0 from GitHub Security Advisory (severity: CRITICAL) published 2026-07-31. NVD baseline CVSS 9.0; sources differ by 0.0.

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: 9.0Exploit: None knownExposed: 0

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

The fix for CVE-2026-12045 in pgAdmin 4 9.16 required the LLM-supplied query passed to the AI Assistant's execute_sql_query tool to parse, via sqlparse, as exactly one non-transaction-control statement before running it inside a BEGIN TRANSACTION READ ONLY wrapper. sqlparse's string-literal lexing can disagree with PostgreSQL's own parser: under standard_conforming_strings = on (PostgreSQL's default since 9.1), a backslash immediately before a quote is an ordinary character to PostgreSQL, but sqlparse treats it as escaping the quote. A payload such as SELECT '\';COMMIT;CREATE TABLE pwn(x int);SELECT 1 --' therefore parses as a single SELECT to sqlparse's validator, while PostgreSQL executes it as four statements: the smuggled COMMIT ends the wrapping read-only transaction, and the trailing ROLLBACK becomes a no-op. This reintroduces the same write/RCE bypass CVE-2026-12045 was meant to close, reachable via the same indirect prompt-injection delivery (an attacker plants the payload in any object the AI Assistant may read; the LLM emits it as a tool call).

An initial candidate fix ran the query with psycopg's execute(..., prepare=True), intending to force PostgreSQL's own Parse step (extended query protocol) to reject multi-statement text regardless of sqlparse's classification. This candidate fix does not work as submitted: psycopg3's PrepareManager silently ignores the prepare argument whenever the connection's prepare_threshold is None, which is pgAdmin's default for every server connection (the per-server "Prepare threshold" field is blank unless an administrator explicitly sets it) -- psycopg3 falls back to the simple query protocol, the same multi-statement-capable path the bypass exploits, so the candidate fix closes nothing on any real-world default configuration.

The corrected fix sets conn.prepare_threshold = 0 directly on the dedicated, single-use read-only connection the AI Assistant tool opens, structurally forcing the extended query protocol independent of any server-level configuration. Verified against a live PostgreSQL 18 instance: the payload executes successfully under the prepare_threshold=None (default) behavior, and is rejected with "cannot insert multiple commands into a prepared statement" once prepare_threshold=0 is set on that connection.

This issue affects pgAdmin 4: from 9.13 before 9.17.

CVSS v3
9.0
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
35%
KEV
Not listed

Published

July 31, 2026

Last Modified

August 5, 2026

Advisory Details (3)

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

AI Assistant read-only transaction bypass via sqlparse/PostgreSQL lexer disagreement (CVE-2026-17351) · Issue #10192 · pgadmin-org/pgadmin4 · GitHub

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

commit ef76102bcd1c (pgadmin-org/pgadmin4)

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

https://github.com/pgadmin-org/pgadmin4/commit/ef76102bcd1cdb544eb9b4ef18d3382f22b76752
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-17351(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 38× in last 7d / 162× 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 314 total refreshes for this CVE.

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

Frequently asked(5)

What is CVE-2026-17351?
CVE-2026-17351 is a critical vulnerability published on July 31, 2026. The fix for CVE-2026-12045 in pgAdmin 4 9.16 required the LLM-supplied query passed to the AI Assistant's executesqlquery tool to parse, via sqlparse, as exactly one non-transaction-control statement before running it inside a BEGIN TRANSACTION READ ONLY wrapper. sqlparse's string-literal lexing…
When was CVE-2026-17351 disclosed?
CVE-2026-17351 was first published in the National Vulnerability Database on July 31, 2026, with the most recent update on August 5, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-17351 actively exploited?
CVE-2026-17351 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 65.3% of all scored CVEs.
What is the CVSS score of CVE-2026-17351?
CVE-2026-17351 has a CVSS v3 base score of 9.0 (NVD).
How do I remediate CVE-2026-17351?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-17351, 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-17351

Explore →

Is Your Infrastructure Affected by CVE-2026-17351?

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