7.5High

CVE-2023-39417Postgresql: extension script @substitutions@ within quoting allow sql injection

Red Hat Red Hat Advanced Cluster Security 4.2; Red Hat Red Hat Enterprise Linux 8; Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support; Red Hat Red Ha… Published: (3 years ago)

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.

Weakness (CWE): CWE-89

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
advanced cluster security 3.74 —
advanced cluster security 4.1 —
advanced cluster security 4.2 —
debian debian linux 8.0
enterprise linux 8 —
enterprise linux 9 —
postgresql postgresql 11.0 – < 11.21
redhat enterprise linux 8.0
Red Hat Red Hat Advanced Cluster Security 4.2 all versions
Red Hat Red Hat Enterprise Linux 6 —
Red Hat Red Hat Enterprise Linux 7 —
Red Hat Red Hat Enterprise Linux 8 all versions
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support all versions
Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service all versions
Red Hat Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions all versions
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions
Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service all versions
Red Hat Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions all versions
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support all versions
Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support all versions
Red Hat Red Hat Enterprise Linux 9 all versions
Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support all versions
Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support all versions
Red Hat Red Hat Software Collections all versions
Red Hat Red Hat Software Collections for Red Hat Enterprise Linux 7 all versions
Red Hat RHACS-3.74-RHEL-8 all versions
Red Hat RHACS-4.1-RHEL-8 all versions
redhat software collections —
rhel aus 8.2 —
rhel aus 8.4 —
rhel software collections 3 —
rhel e4s 8.2 —
rhel e4s 8.4 —
rhel eus 8.6 —
rhel eus 8.8 —
rhel eus 9.0 —
rhel eus 9.2 —
rhel tus 8.2 —
rhel tus 8.4 —

References and patches

CPE matches (NVD) (11)

  • cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* ≥ 11.0 < 11.21
  • cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* ≥ 12.0 < 12.16
  • cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* ≥ 13.0 < 13.12
  • cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* ≥ 14.0 < 14.9
  • cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* ≥ 15.0 < 15.4
  • cpe:2.3:a:redhat:software_collections:-:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:12.0:*:*:*:*:*:*:*