CVE-2023-39417
Executive Summary
CVE-2023-39417 exposes a SQL injection in PostgreSQL extensions that use @extowner@, @extschema@, or @extschema:…@ within quoted strings. An attacker with CREATE privilege can inject arbitrary SQL, causing code execution as the bootstrap superuser when a vulnerable, trusted, non‑bundled extension is installed. This allows privilege escalation and full database compromise. No current CISA KEV listing.
Authoritative CVE Metadata
- CVSS Base Score: 7.5 (HIGH)
- Last Modified: 25-11-26
Original Description
IN THE EXTENSION SCRIPT, a SQL Injection vulnerability was found in PostgreSQL if it uses @extowner@, @extschema@, or @extschema:...@ inside a quoting construct (dollar quoting, '', or ""). If an administrator has installed files of a vulnerable, trusted, non-bundled extension, an attacker with database-level CREATE privilege can execute arbitrary code as the bootstrap superuser.