CVE-2026-12045: Read-only transaction bypass in the pgAdmin 4 AI Assistant allows an attacker who can influence database conte
CVE-2026-12045 is a critical-severity flaw (CVSS 9.0) affecting pgadmin 4. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 sing
Why this priority
- Critical severity
A fixed release or distro patch exists.
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-12045?
pgadmin 4: upgrade to 9.16. Exact commands for each OS are on this page.
Is CVE-2026-12045 being exploited?
CVE-2026-12045 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-12045 affect?
CVE-2026-12045 affects pgadmin 4. Severity is critical (CVSS 9.0). 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
How urgent is CVE-2026-12045?
Priority 44/100. Critical severity
Related CVEs
- CVE-2026-12046 CRITICAL 9.0 UPGRADE Two state-mutating endpoints in pgAdmin 4's SQL Editor blueprint -- DELETE /sqleditor/close/<trans_id> and POS
- CVE-2026-12050 MEDIUM 4.3 UPGRADE SQL injection in pgAdmin 4's named restore point endpoint (POST /browser/server/restore_point/{gid}/{sid})
- CVE-2026-17566 CRITICAL 9.9 UPGRADE pgAdmin 4's Import/Export Data tool builds a psql \copy (...) command line by interpolating a user-supplied SQ
- CVE-2026-17346 HIGH 8.8 UPGRADE The fix for CVE-2026-12044 in pgAdmin 4 9.16 hardened qtLiteral and switched sixteen COMMENT ON / pgstattuple
- CVE-2026-17349 CRITICAL 9.6 UPGRADE /misc/workspace/adhoc_connect_server, part of the Workspaces feature introduced in pgAdmin 4 9.0, when passed