High [CVE-2023-39417] Postgresql: extension script @substitutions@ within quoting allow sql injection
This high-severity Red Hat Linux advisory covers CVE-2023-39417 affecting Red Hat Advanced Cluster Security 4.2, Red Hat Enterprise Linux 8.2 Advanced Update Support, Red Hat Enterprise Linux 8.2 Telecommunications Update Service.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.
Summary
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. Bundled extensions are not vulnerable.
Also, PostgreSQL will block this attack in the core server, so there's no need to modify individual extensions. Red Hat severity: Moderate — CVSS 7.5 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).
Weakness: CWE-89.
Affected products named by the advisory: Red Hat Advanced Cluster Security 4.2; 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; and 12 more.
Affected versions
No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.
Official advisory · high-confidence parse· fetched 6 days ago·verify at source
- advanced-cluster-security/rhacs-central-db-rhel8:4.2.4-6
- advanced-cluster-security/rhacs-main-rhel8:4.2.4-6
- advanced-cluster-security/rhacs-operator-bundle:4.2.4-7
- advanced-cluster-security/rhacs-scanner-db-rhel8:4.2.4-6
- advanced-cluster-security/rhacs-scanner-db-slim-rhel8:4.2.4-7
- postgresql:13-8090020231114113712.a75119d5
- postgresql:12-8090020231128173330.a75119d5
- postgresql:15-8090020231114113548.a75119d5
- postgresql:12-8020020231128165246.4cda2c84
- postgresql:12-8040020231127153301.522a0ee4
- postgresql:13-8040020231127154806.522a0ee4
- postgresql:13-8060020231114115246.ad008a3a
- postgresql:12-8060020231128165328.ad008a3a
- postgresql:13-8080020231114105206.63b34585
- postgresql:12-8080020231128165335.63b34585
- postgresql:15-8080020231113134015.63b34585
- postgresql-0:13.13-1.el9_3
- postgresql:15-9030020231120082734.rhel9
- postgresql-0:13.13-1.el9_0
- postgresql-0:13.13-1.el9_2
- postgresql:15-9020020231115020618.rhel9
- rh-postgresql12-postgresql-0:12.17-1.el7
- rh-postgresql13-postgresql-0:13.13-1.el7
- advanced-cluster-security/rhacs-central-db-rhel8:3.74.8-9
- advanced-cluster-security/rhacs-main-rhel8:3.74.8-9
- advanced-cluster-security/rhacs-operator-bundle:3.74.8-7
- advanced-cluster-security/rhacs-scanner-db-rhel8:3.74.8-9
- advanced-cluster-security/rhacs-scanner-db-slim-rhel8:3.74.8-9
- advanced-cluster-security/rhacs-central-db-rhel8:4.1.6-6
- advanced-cluster-security/rhacs-main-rhel8:4.1.6-6
- advanced-cluster-security/rhacs-operator-bundle:4.1.6-6
- advanced-cluster-security/rhacs-scanner-db-rhel8:4.1.6-6
- advanced-cluster-security/rhacs-scanner-db-slim-rhel8:4.1.6-6
- RHSA-2024:0337
- RHSA-2023:7581
- RHSA-2023:7714
- RHSA-2023:7884
- RHSA-2023:7667
- RHSA-2023:7694
- RHSA-2023:7695
- RHSA-2023:7580
- RHSA-2023:7666
- RHSA-2023:7579
- RHSA-2023:7656
- RHSA-2023:7883
- RHSA-2023:7784
- RHSA-2023:7785
- RHSA-2023:7545
- RHSA-2023:7616
- RHSA-2023:7885
Official advisory · high-confidence parse· fetched 6 days ago·verify at source
Mitigation
Upgrade to a fixed release: advanced-cluster-security/rhacs-central-db-rhel8:4.2.4-6, advanced-cluster-security/rhacs-main-rhel8:4.2.4-6, advanced-cluster-security/rhacs-operator-bundle:4.2.4-7, advanced-cluster-security/rhacs-scanner-db-rhel8:4.2.4-6, advanced-cluster-security/rhacs-scanner-db-slim-rhel8:4.2.4-7, postgresql:13-8090020231114113712.a75119d5. That is the remediation for this advisory.
The vendor advisory may list additional interim mitigations or workarounds not captured here — review it before change work.
Official advisory · high-confidence parse· fetched 6 days ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.