CVE-2026-12045
Last modified
CVE-2026-12045 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 0.51% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Pgadmin | Pgadmin 4 | >= 9.13, < 9.16 |
References
- https://github.com/pgadmin-org/pgadmin4/issues/10022Issue Tracking, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-12045?
How severe is CVE-2026-12045?
How do I fix CVE-2026-12045?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-12035Use after free in Views in Google Chrome on Windows prior to…8.8
- CVE-2026-12038Rejected reason: ** REJECT ** DO NOT USE THIS CANDIDATE NUMB…
- CVE-2026-12039Docker Sandboxes (sbx) enforces an HTTP/S-only egress allowl…5.7
- CVE-2026-12041The Chatra Live Chat + ChatBot + Cart Saver plugin for WordP…4.4
- CVE-2026-12043Improper handling of HPACK dynamic table size updates in the…8.8
- CVE-2026-12044SQL injection in pgAdmin 4 across every dialog template that…8.8
- CVE-2026-12046Two state-mutating endpoints in pgAdmin 4's SQL Editor bluep…9.5
- CVE-2026-12047HTML injection in pgAdmin 4's cloud deployment module. The v…5.4
- CVE-2026-12048Stored cross-site scripting in pgAdmin 4's error-rendering a…5.4
- CVE-2026-12049Open redirect in pgAdmin 4's multi-factor authentication flo…6.1
- CVE-2026-12050SQL injection in pgAdmin 4's named restore point endpoint (P…8.8
- CVE-2026-12051The USB DFU class implementation in Zephyr's new (experiment…4.6
Are you affected by CVE-2026-12045?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
