CVE-2026-17351PoC(pgadmin / pgadmin_4)

LOWCVSS 9.0 · CRITICAL

Exploit discussion active in current signal (2 latest mentions)

Immediate actions

  • Patch pgadmin pgadmin_4 systems immediately
  • Hunt for exploitation attempts and persistence artifacts
  • Increase monitoring for publicly documented tradecraft

Recommended action window: High priority (within 72h)

NVD description

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.

2.0/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-89CWE-115

Priority

LOW

Exploitation

NONE

PoC

YES

Patch

AVAILABLE

Momentum

STABLE

Are you affected?

If you run products in this scope, you should treat this CVE as relevant to your environment.

  • pgadmin_4

Threat summary

  • Public PoC is present in monitored signal
  • Patch or workaround signal is available
  • 3 mentions across 2 observed days
  • Momentum state: stable

What's happening

  • PoC mentioned or linked in 1 signal
  • Patch or workaround mentioned in 2 signals
  • Technical details provided in 3 signals
  • Disclosure: 1 classified signal
  • General: 1 classified signal
  • Peaked at 2 mentions on most recent observed day (2026-08-26)
  • 3 total mentions across 2 days

Affected systems

Vendors
Products
pgadmin_4

Deep dive

Activity timeline3 mentions / 2d
01122Mentions · 2026-08-03: 1Mentions · 2026-08-26: 2PoC Mentioned / Linked · 2026-08-03: 1Patch / Workaround · 2026-08-26: 2Technical Details · 2026-08-03: 1Technical Details · 2026-08-26: 208-0308-26
Signal classification3 categories
PoC
133.3%
Disclosure
133.3%
General
133.3%
Referenced assets3 URLs
Classification over time
DateTotalLabels
2026-08-031
PoC1
2026-08-262
Disclosure1General1
Full discourse3 posts
  • takenaka hiroya@Joe_Biden_ja
    Disclosure

    pgAdmin 4のAIアシスタントで、読み取り専用の囲いが破られ書き込みやRCEに至ります。CVSS 9.0。攻撃者はアシスタントが読むテーブルのコメントなどに文字列を置くだけでよく、画面には触れません。影響は9.13以上9.17未満、修正は9.17です。 https://cve.autoarticles.net/cve/CVE-2026-17351

    Post summary

    pgAdmin 4 contains an RCE vulnerability (CVE‑2026‑17351) exploitable via AI assistant comment insertion, scored CVSS 9.0, and is fixed in version 9.17.

    0000064
    562 followersView on X
  • takenaka hiroya@Joe_Biden_ja
    General

    検証用のパーサと実行系のパーサがずれると、検証は素通りします。pgAdmin 4のCVE-2026-17351は、引用符の直前のバックスラッシュをsqlparseとPostgreSQLが別々に読むのが原因でした。最初に出た修正案が効かなかった理由まで書いています。 https://blog.hashito.biz/2026/08/26/pgadmin-cve-2026-17351-sqlparse-vs-postgresql-parser/

    Post summary

    The article explains the root cause of CVE‑2026‑17351 and why an earlier patch proposal was ineffective, but it does not provide PoC, exploit tools, or active exploitation evidence.

    0000057
    562 followersView on X
  • Hephaestvs@Vulcanux_
    PoC

    csirt_it: #pgAdmin: rilevate nuove vulnerabilità, tra cui la CVE-2026-17351 per la quale risulta disponibile un Proof of Concept (#PoC) Rischio: 🔴 Tra le tipologie: 🔸 Remote Code Execution 🔗https://www.acn.gov.it/portale/w/rilevata-molteplici-vulnerabilita-in-pgadmin ⚠️ Importante mantenere aggiornat… https://t.co/NfuWjbaAsn

    Post summary

    A Proof‑of‑Concept for CVE‑2026‑17351, enabling remote code execution, has been disclosed, but no active exploitation or patch details are provided.

    0000034
    629 followersView on X
CPE platform detail1 entries

1 of 1 entries

PartVendorProductVersionTarget SWTarget HW
Apppgadminpgadmin_4-postgresql-

Explore more