CVE-2026-17351

CRITICALNVD 9.09.0
EchelonGraph scoreHIGH 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(high)
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
31%
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 51× in last 7d / 154× 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 154 total refreshes for this CVE.

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