CVE-2026-17351
pgAdmin 4 read-only transaction bypass from sqlparse vs PostgreSQL lexing; fix by setting prepare_threshold to 0.
| Reporter | Title | Published | Views | Family All 47 |
|---|---|---|---|---|
| CVE-2026-12045 | 18 Jun 202623:37 | – | attackerkb | |
| Exploit for CVE-2026-17351 | 31 Jul 202617:17 | – | githubexploit | |
| pgAdmin 4 Execute SQL Query Code Execution | 6 Jul 202600:00 | – | bdu_fstec | |
| pgAdmin 4 DoS | 25 Sep 202600:00 | – | bdu_fstec | |
| CVE-2026-12045 | 19 Jun 202603:58 | – | circl | |
| CVE-2026-17351 | 31 Jul 202617:02 | – | circl | |
| pgAdmin 4 command injection vulnerability | 19 Jun 202600:00 | – | cnnvd | |
| CVE-2026-12045 | 18 Jun 202623:37 | – | cve | |
| CVE-2026-12045 pgAdmin 4: AI Assistant read-only transaction bypass allows unauthorised writes and remote code execution | 18 Jun 202623:37 | – | cvelist | |
| CVE-2026-17351 pgAdmin 4: AI Assistant read-only transaction bypass via sqlparse/PostgreSQL lexer disagreement (incomplete fix for CVE-2026-12045) | 31 Jul 202616:00 | – | cvelist |
10
[
{
"vendor": "pgadmin.org",
"product": "pgAdmin 4",
"repo": "https://github.com/pgadmin-org/pgadmin4",
"modules": [
"AI Assistant",
"LLM Tools"
],
"programFiles": [
"https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/llm/tools/database.py"
],
"versions": [
{
"status": "affected",
"version": "9.13",
"lessThan": "9.17",
"versionType": "custom"
}
],
"defaultStatus": "unaffected"
}
]| Parameter | Position | Path | Description | CWE |
|---|---|---|---|---|
| query | request body | /execute_sql_query | The AI Assistant's execute_sql_query tool is vulnerable to SQL injection via a lexer differential. An attacker can use indirect prompt injection to plant a payload in a database object that the LLM reads and then emits as a multi-statement SQL query. The payload uses backslashes to bypass client-side validation (sqlparse) while being executed as multiple statements by PostgreSQL. | CWE-115, CWE-89 |
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
23 Oct 2026 23:10Current
8.1High risk
Vulners AI Score8.1
CVSS 3.19
CVSS 49.4
EPSS0.00658
SSVC