CVE-2026-12045Disclosure(pgadmin / pgadmin_4)

LOWCVSS 8.8 · HIGH

Signal is active with 1 mentions in latest observed window

Immediate actions

  • Patch pgadmin pgadmin_4 systems immediately

Recommended action window: Monitor and triage in normal cycle

NVD description

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.

0.5/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-77CWE-89

Priority

LOW

Exploitation

NONE

PoC

NONE

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

  • Patch or workaround signal is available
  • 6 mentions across 2 observed days
  • Momentum state: stable

What's happening

  • Patch or workaround mentioned in 3 signals
  • Technical details provided in 6 signals
  • Disclosure: 3 classified signals
  • General: 1 classified signal
  • Peaked 1d ago at 5 mentions (2026-06-22); latest day: 1
  • 6 total mentions across 2 days

Affected systems

Vendors
Products
pgadmin_4

Deep dive

Activity timeline6 mentions / 2d
01345Mentions · 2026-06-22: 5Mentions · 2026-07-15: 1Patch / Workaround · 2026-06-22: 3Technical Details · 2026-06-22: 5Technical Details · 2026-07-15: 106-2207-15
Signal classification3 categories
Disclosure
350.0%
Patch
233.3%
General
116.7%
Referenced assets6 URLs
Classification over time
DateTotalLabels
2026-06-225
Disclosure3Patch2
2026-07-151
General1
Full discourse6 posts
  • FOFA@fofabot
    Disclosure

    ⚠️⚠️ CVE-2026-12046 (CVSS 9.5) + CVE-2026-12045 + CVE-2026-12048 (CVSS 9.3): pgAdmin 4 server-mode flaws enable unauth RCE and stored XSS in PostgreSQL admin UI. 🔗FOFA Link: https://en.fofa.info/result?qbase64=YXBwPSJwZ0FkbWluNCI= 🎯66.4K+ Results are found on http://en.fofa.info in the past year. FOFA Query: app="pgAdmin4" 🔖Refer: https://securityonline.info/pgadmin-4-vulnerabilities/ #OSINT #FOFA #CyberSecurity #Vulnerability

    Post summary

    The post announces three severe pgAdmin 4 Server‑mode CVEs that allow unauthenticated RCE and stored XSS, providing FOFA query details and a reference link, but no exploit, active‑attack, or patch information.

    1262995842.7K
    14.6K followersView on X
  • yousukezan@yousukezan
    Disclosure

    PostgreSQL管理ツールpgAdmin 4で、CVSS 9.0超の重大な脆弱性3件が修正された。影響にはクロスサイトスクリプティング(XSS)、認証回避を伴うコード実行、AIアシスタント経由のSQL悪用が含まれ、バージョン9.16で対処されている。 CVE-2026-12048(CVSS 9.3)は保存型XSSで、エラーメッセージや実行計画の表示時にサニタイズされていないデータが描画される問題だった。低権限ユーザーや悪意のあるPostgreSQLサーバーがHTMLやiframeを埋め込み、pgAdmin画面内で不正コンテンツを表示できた。 CVE-2026-12046(CVSS 9.5)はSQL Editorの2つのエンドポイントで認証チェックが欠落していた問題で、サーバーモードでは未認証アクセスが可能だった。さらにセッション情報へのアクセスなど別の条件が揃うと、コード実行につながる可能性があった。 CVE-2026-12045(CVSS 9.4)はAI Assistantに存在する脆弱性で、プロンプトインジェクションを利用して読み取り専用トランザクションを終了させ、その後のSQLを自動コミットで実行できた。権限次第ではデータ改変やコマンド実行に悪用される可能性があった。 pgAdminチームはバージョン9.16で全ての問題を修正したとしている。 https://securityonline.info/pgadmin-4-vulnerabilities/

    Post summary

    Three high‑CVSS CVEs affecting pgAdmin 4 were disclosed and fixed in version 9.16, with technical details provided but no indication of active exploitation or PoC evidence.

    0801622.2K
    14.8K followersView on X
  • GovCERT.CZ@GOVCERT_CZ
    Patch

    🚨 Upozorňujeme na zranitelnosti v pgAdmin 4, CVE-2026-12046, CVE-2026-12045, CVE-2026-12048. Tyto zranitelnosti zahrnují neautentizovanou deserializaci (pickle) v routách SQL Editoru (close a update_connection), která umožňuje vzdálené spuštění kódu, zranitelnost AI Assistant Prompt Injection kombinovanou se SQL Injection a obcházením read-only transakcí, a také uložený Cross-Site Scripting prostřednictvím nedůvěryhodného textu chyb a plan-node renderovaného přes html-react-parser. Útočník může za určitých podmínek bez autentizace spustit škodlivý kód, manipulovat s databázovými dotazy, obcházet bezpečnostní omezení a injektovat skripty vedoucí ke kompromitaci uživatelských relací nebo dat. 📌Doporučujeme aktualizovat na pgAdmin verze 9.16 nebo novější.

    Post summary

    The advisory details three unauthenticated vulnerabilities in pgAdmin 4 that enable remote code execution, SQL injection, and XSS, and it advises users to upgrade to pgAdmin 9.16 or later.

    03020627
    4.3K followersView on X
  • CCB Alert@CCBalert
    Disclosure

    Warning: Critical vulnerabilities (#RCE + stored #XSS) in #pgAdmin 4 allow unauthenticated remote code execution and credential theft. #CVE-2026-12048 #CVE-2026-12046 #CVE-2026-12045 CVSS(3.1): 9.3/9.0. Read the advisory https://ccb.belgium.be/advisories/warning-remote-code-execution-and-cross-site-scripting-pgadmin-4-can-be-exploited and #Patch #Patch #Patch

    Post summary

    Advisory alerts to critical RCE and XSS flaws in pgAdmin 4 with CVSS 9.3/9.0, but no PoC, exploit, or patch details are included.

    01000388
    7.2K followersView on X
  • Daily CyberSecurity@the_yellow_fall
    Patch

    Three critical pgAdmin 4 vulnerabilities (CVE-2026-12046, CVE-2026-12048, CVE-2026-12045) risk XSS and RCE. Update to pgAdmin 4 9.16 now. #pgAdmin #PostgreSQL #XSS #RCE #CVE #Vulnerability https://securityonline.info/pgadmin-4-vulnerabilities https://t.co/msfkHZZ9l1

    Post summary

    The tweet announces three critical pgAdmin 4 vulnerabilities that allow XSS and RCE, and urges users to apply the 9.16 patch immediately.

    00010578
    12.3K followersView on X
  • IntegSec@integ_sec
    General

    CVE-2026-12045: pgAdmin 4 AI Assistant Read-Only Transaction Bypass - What It Means for Your Business and How to Respond https://hubs.li/Q04pDq9k0

    Post summary

    A blog link cites the CVE-2026-12045 pgAdmin 4 AI Assistant Read-Only Transaction Bypass and urges firms to respond, but it lacks specific technical details beyond the bypass type, and it does not disclose PoC, exploit code, active exploitation, or patch information.

    0000030
    32 followersView on X
CPE platform detail1 entries

1 of 1 entries

PartVendorProductVersionTarget SWTarget HW
Apppgadminpgadmin_4-postgresql-

Explore more