Rapid7 Vulnerability & Exploit Database

PostgreSQL: CVE-2023-39417: Extension script @substitutions@ within quoting allow SQL injection

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

PostgreSQL: CVE-2023-39417: Extension script @substitutions@ within quoting allow SQL injection

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
08/11/2023
Created
08/11/2023
Added
08/11/2023
Modified
01/15/2024

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.

Solution(s)

  • postgres-upgrade-12_16
  • postgres-upgrade-13_12
  • postgres-upgrade-14_9
  • postgres-upgrade-15_4

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;