CVE-2023-39417 - CVE House
Back to Database
Status published High CVE-2023-39417

Postgresql: extension script @substitutions@ within quoting allow sql injection

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2023-39417

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Red Hat Advanced Cluster Security 4.2, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 8.2 Advanced Update Support, Red Hat Enterprise Linux 8.2 Telecommunications Update Service, Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions, Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.4 Telecommunications Update Service, Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions, Red Hat Enterprise Linux 8.6 Extended Update Support, Red Hat Enterprise Linux 8.8 Extended Update Support, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 9.0 Extended Update Support, Red Hat Enterprise Linux 9.2 Extended Update Support, Red Hat Software Collections for Red Hat Enterprise Linux 7, RHACS-3.74-RHEL-8, RHACS-4.1-RHEL-8, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Software Collections
Vulnerable Versions:
4.2.4-6, 4.2.4-7, 8090020231114113712.a75119d5, 8090020231128173330.a75119d5, 8090020231114113548.a75119d5, 8020020231128165246.4cda2c84, 8040020231127153301.522a0ee4, 8040020231127154806.522a0ee4, 8060020231114115246.ad008a3a, 8060020231128165328.ad008a3a, 8080020231114105206.63b34585, 8080020231128165335.63b34585, 8080020231113134015.63b34585, 0:13.13-1.el9_3, 9030020231120082734.rhel9, 0:13.13-1.el9_0, 0:13.13-1.el9_2, 9020020231115020618.rhel9, 0:12.17-1.el7, 0:13.13-1.el7, 3.74.8-9, 3.74.8-7, 4.1.6-6

Timeline

Official Publish: August 11th, 2023
Last Modified: March 12th, 2026
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses (CWE)