{"data":{"id":"c90c9610-7026-4e6d-98b4-54e2b0b24667","title":"CVE-2026-12045: Read-only transaction bypass in the pgAdmin 4 AI Assistant allows an attacker who can influence database content that…","summary":"CVE-2026-12045 is a read-only transaction bypass in the pgAdmin 4 AI Assistant's execute_sql_query tool, affecting pgAdmin 4 from 9.13 before 9.16. An attacker who can write content the assistant reads can use prompt injection to make the LLM emit a multi-statement payload starting with COMMIT, END, ROLLBACK, or ABORT, which ends the read-only transaction and runs later statements in autocommit mode. Where the pgAdmin user's role is a superuser or holds pg_execute_server_program, the chain can extend to remote code execution on the database server host via COPY ... TO PROGRAM.","solution":"Fixed in pgAdmin 4 9.16. The fix validates that the LLM-supplied query parses to exactly one statement whose leading token is SELECT, WITH, EXPLAIN, SHOW, VALUES, or TABLE, and rejects transaction-control, DML, DDL, CALL, COPY, DO, SET/RESET, and other statements before any database work. PostgreSQL's READ ONLY mode continues to backstop data-modifying CTEs, EXPLAIN ANALYZE on writes, and volatile side effects.","labels":["security"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-12045","publishedAt":"2026-06-19T00:16:46.703Z","cveId":"CVE-2026-12045","cweIds":["CWE-77","CWE-89"],"cvssScore":"9","cvssSeverity":"critical","severity":"critical","attackType":["prompt_injection","other"],"issueType":"vulnerability","affectedPackages":null,"affectedPackageNames":null,"affectedPackageRefs":null,"affectedVendors":[],"affectedVendorsRaw":["pgAdmin 4 AI Assistant"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":"pgAdmin 4 AI Assistant read-only transaction bypass via prompt injection","headlinePromptVersion":"h1","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":null,"epssScore":null,"epssPercentile":null,"epssCheckedAt":null,"epssHistory":null,"epss30dChange":null,"exploitUrls":null,"patchCommitUrls":null,"ssvcExploitation":null,"nvdStatus":null,"referencesCheckedAt":null,"kevDateAdded":null,"advisoryAliases":["GHSA-95q2-vx3p-f723"],"affectedPackagesSource":null,"affectedPackagesCheckedAt":"2026-12-03T19:02:24.044Z","patchAvailable":true,"disclosureDate":"2026-06-19T00:16:46.703Z","fixReleasedAt":null,"daysToFix":null,"fixCheckedAt":null,"capecIds":null,"crossRefCount":0,"attackSophistication":"moderate","impactType":["confidentiality","integrity","safety"],"aiComponentTargeted":"agent","llmSpecific":true,"classifierConfidence":0.9,"researchCategory":null,"atlasIds":["AML.T0051"],"openalexId":null,"openalexMatch":null,"openalexCheckedAt":null,"paperAuthors":null,"paperVenue":null,"paperVenueType":null,"paperYear":null,"paperDoi":null,"paperPublished":null,"paperOaUrl":null,"citedByCount":null,"codeUrls":null,"nvdFilled":null,"fixedVersions":null,"affectedPurls":null,"owaspLlmIds":["LLM01:2025"],"doi":null,"arxivId":null,"hasPublicExploit":null,"timeline":[{"event":"published","date":"2026-06-19","source":"record_source"}],"provenance":{"fields":{"id":"pipeline","title":"source","summary":"model","solution":"model","labels":"model","sourceUrl":"source","publishedAt":"source","cveId":"source","cweIds":"source","cvssScore":"source","cvssSeverity":"source","severity":"source","attackType":"model","issueType":"source","affectedPackages":"source","affectedPackageNames":"source","affectedPackageRefs":"source","affectedVendors":"model","affectedVendorsRaw":"model","classifierModel":"pipeline","classifierPromptVersion":"pipeline","summaryPromptVersion":"pipeline","headline":"model","headlinePromptVersion":"pipeline","cvssVector":"source","attackVector":"source","attackComplexity":"source","privilegesRequired":"source","userInteraction":"source","exploitMaturity":"source","epssScore":"source","epssPercentile":"source","epssCheckedAt":"pipeline","epssHistory":"source","epss30dChange":"source","exploitUrls":"source","patchCommitUrls":"source","ssvcExploitation":"source","nvdStatus":"source","referencesCheckedAt":"pipeline","kevDateAdded":"source","advisoryAliases":"source","affectedPackagesSource":"pipeline","affectedPackagesCheckedAt":"pipeline","patchAvailable":"source","disclosureDate":"source","fixReleasedAt":"source","daysToFix":"source","fixCheckedAt":"pipeline","capecIds":"source","crossRefCount":"source","attackSophistication":"model","impactType":"model","aiComponentTargeted":"model","llmSpecific":"model","classifierConfidence":"model","atlasIds":"model","openalexId":"source","openalexMatch":"pipeline","openalexCheckedAt":"pipeline","paperAuthors":"source","paperVenue":"source","paperVenueType":"source","paperYear":"source","paperDoi":"source","paperPublished":"source","paperOaUrl":"source","citedByCount":"source","codeUrls":"source","nvdFilled":"pipeline","fixedVersions":"source","affectedPurls":"source","owaspLlmIds":"model","doi":"source","arxivId":"source","hasPublicExploit":"source","timeline":"source"},"model":{"classifier":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2"}},"fixes":[]}}