Read-Only Transaction Bypass in pgAdmin 4 AI Assistant
CVE-2026-12045

9.4CRITICAL

Key Information:

Status
Vendor
CVE Published:
18 June 2026

What is CVE-2026-12045?

The pgAdmin 4 AI Assistant contains a vulnerability that allows attackers to bypass read-only transactions, enabling them to execute arbitrary SQL queries with the privileges of the pgAdmin user's database role. By exploiting prompt injection techniques, an attacker can craft multi-statement payloads that manipulate the transaction control, allowing unauthorized data modification within the database. If the user's role has escalated privileges, such as being a PostgreSQL superuser, the attacker can potentially achieve remote code execution on the database server host. To resolve this issue, a fix has been implemented that strictly validates LLM-supplied queries, ensuring they conform to a single read-only statement and rejecting any harmful transaction-control verbs or data modification commands.

Affected Version(s)

pgAdmin 4 9.13 < 9.16

References

CVSS V4

Score:
9.4
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Isaac Chen <isaac9503@gmail.com>
Dave Page <page@pgadmin.org>
Kundan Sable <kundan.sable@enterprisedb.com>
.