CVE-2023-39417

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

State
Published
Severity
7.5 High
Published
Aug 11, 2023
Updated
Nov 1, 2026
Reserved
Aug 1, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat

Weaknesses

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

Affected Products

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

          References

          Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.