Servers and applications
CVE-2026-17351
The fix for CVE-2026-12045 in pgAdmin 4 9.16 required the LLM-supplied query passed to the AI Assistant's execute_sql_query tool to parse, via sqlparse, as exactly one non-transaction-control statement before running it inside a BEGIN TRANSACTION READ ONLY wrapper. sqlparse's string-literal lexing can disagree with PostgreSQL's own parser: under standard_conforming_strings = on (PostgreSQL's…
- Severity
- Critical 9.4
- Published
- 31 Jul 2026
- Last changed
- 23 Oct 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 9.17
- Exploit chance
- 0.5% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- SQL injection (CWE-89)CWE-115
- Attack
- Over the network · Needs a user account · Needs someone to view a page or file
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
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- Sources
- NVD
Description
The fix for CVE-2026-12045 in pgAdmin 4 9.16 required the LLM-supplied query passed to the AI Assistant's execute_sql_query tool to parse, via sqlparse, as exactly one non-transaction-control statement before running it inside a BEGIN TRANSACTION READ ONLY wrapper. sqlparse's string-literal lexing can disagree with PostgreSQL's own parser: under standard_conforming_strings = on (PostgreSQL's default since 9.1), a backslash immediately before a quote is an ordinary character to PostgreSQL, but sqlparse treats it as escaping the quote. A payload such as SELECT '\';COMMIT;CREATE TABLE pwn(x int);SELECT 1 --' therefore parses as a single SELECT to sqlparse's validator, while PostgreSQL executes it as four statements: the smuggled COMMIT ends the wrapping read-only transaction, and the trailing ROLLBACK becomes a no-op.
Affected software
| Software | Affected versions |
|---|---|
pgAdminServers and applications · cpe:a:pgadmin:pgadmin_4 |
|
About pgAdmin
graphical administration tool for PostgreSQL
- Weekly downloads (PyPI)
- 5,570PyPI Stats, 15 Nov 2026
- Docker Hub pulls
- 455,658,756Docker Hub, 15 Nov 2026
- GitHub stars
- 3,940GitHub, 15 Nov 2026
- Forks
- 921GitHub, 15 Nov 2026
- License
- PostgreSQL LicenseWikidata
- Written in
- Python, JavaScriptWikidata
- First published on GitHub
- 20 Feb 2017GitHub
Website Source code Docker image Package
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 9 | 9.19 | Yes |
| 8 | 8.14 | Ended 6 Feb 2025 |
| 7 | 7.8 | Ended 23 Nov 2023 |
| 6 | 6.21 | Ended 13 Apr 2023 |
| 5 | 5.7 | Ended 7 Oct 2021 |
| 4 | 4.30 | Ended 25 Feb 2021 |
From endoflife.date.
Vulnerabilities in pgAdmin
- In our list
- 61
- Published in the last 12 months
- 43
- Critical, last 12 months
- 10
- High, last 12 months
- 22
- Known exploited
- 0
- CVE-2026-116252pgAdmin 4: Materialized view refresh redirects its connection through a crafted database nameHigh 7.1 30 Oct 2026
- CVE-2026-116251pgAdmin 4: A user's other sessions survive a change of their passwordLow 2.3 30 Oct 2026
- CVE-2026-116250pgAdmin 4: Files opened in a storage directory follow a symbolic link, hard link or FIFO planted after the containment checkHigh 7.3 30 Oct 2026
- CVE-2026-116249pgAdmin 4: Connection file paths and parameter keys escape the user's storage directoryHigh 7.2 30 Oct 2026
- CVE-2026-116248pgAdmin 4: Non-administrators can share a server with every userMedium 6.0 30 Oct 2026
- CVE-2026-116247pgAdmin 4: libpq uses the pgAdmin service account's own password file and client certificateHigh 7.1 30 Oct 2026