PatchSiren cyber security CVE debrief
CVE-2026-12045 pgadmin.org CVE debrief
A critical vulnerability (CVE-2026-12045) in pgAdmin 4's AI Assistant allows an attacker with write privileges on the pgAdmin user's role to execute arbitrary SQL, potentially leading to remote code execution on the database server host. The issue arises from the AI Assistant's execute_sql_query tool, which fails to restrict multi-statement payloads, enabling an attacker to bypass read-only transactions. This vulnerability affects pgAdmin 4 versions from 9.13 before 9.16.
- Vendor
- pgadmin.org
- Product
- pgAdmin 4
- CVSS
- CRITICAL 9.4
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-06-19
- Original CVE updated
- 2026-06-23
- Advisory published
- 2026-06-19
- Advisory updated
- 2026-06-23
Who should care
PostgreSQL database administrators, pgAdmin users, and security teams responsible for monitoring and patching database software should be aware of this critical vulnerability and take immediate action to mitigate the risk.
Technical summary
The pgAdmin 4 AI Assistant's execute_sql_query tool runs LLM-generated SQL inside a BEGIN TRANSACTION READ ONLY wrapper. However, it fails to restrict the query to a single statement or read-only verbs, allowing a multi-statement payload to terminate the read-only transaction and execute subsequent statements in autocommit mode. An attacker can inject a payload starting with COMMIT, END, ROLLBACK, or ABORT to bypass the read-only restriction. The fix validates the LLM-supplied query upfront, ensuring it parses to exactly one non-empty, non-comment statement with a leading real token that is one of SELECT, WITH, EXPLAIN, SHOW, VALUES, or TABLE.
Defensive priority
High
Recommended defensive actions
- Update pgAdmin 4 to version 9.16 or later
- Restrict write privileges on the pgAdmin user's role
- Monitor database activity for suspicious queries
- Implement additional security measures, such as query whitelisting
- Review and update incident response plans
- Consider disabling the AI Assistant feature until further updates
Evidence notes
The CVE record and NVD detail provide official information about the vulnerability. The source references include links to the pgAdmin 4 GitHub repository, which contains the fix and more details about the issue.
Official resources
-
CVE-2026-12045 CVE record
CVE.org
-
CVE-2026-12045 NVD detail
NVD
-
Source item URL
nvd_modified
-
Source reference
f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
-
Source reference
f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
public