CVE-2023-39417

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

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.

Category

7.5
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.44%
Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory postgresql.org
Affected: Red Hat Red Hat Advanced Cluster Security 4.2
Affected: Red Hat Red Hat Advanced Cluster Security 4.2
Affected: Red Hat Red Hat Advanced Cluster Security 4.2
Affected: Red Hat Red Hat Advanced Cluster Security 4.2
Affected: Red Hat Red Hat Advanced Cluster Security 4.2
Affected: Red Hat Red Hat Enterprise Linux 8
Affected: Red Hat Red Hat Enterprise Linux 8
Affected: Red Hat Red Hat Enterprise Linux 8
Affected: Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support
Affected: Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service
Affected: Red Hat Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
Affected: Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
Affected: Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
Affected: Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service
Affected: Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service
Affected: Red Hat Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
Affected: Red Hat Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
Affected: Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support
Affected: Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support
Affected: Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support
Affected: Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support
Affected: Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support
Affected: Red Hat Red Hat Enterprise Linux 9
Affected: Red Hat Red Hat Enterprise Linux 9
Affected: Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support
Affected: Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support
Affected: Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support
Affected: Red Hat Red Hat Software Collections for Red Hat Enterprise Linux 7
Affected: Red Hat Red Hat Software Collections for Red Hat Enterprise Linux 7
Affected: Red Hat RHACS-3.74-RHEL-8
Affected: Red Hat RHACS-3.74-RHEL-8
Affected: Red Hat RHACS-3.74-RHEL-8
Affected: Red Hat RHACS-3.74-RHEL-8
Affected: Red Hat RHACS-3.74-RHEL-8
Affected: Red Hat RHACS-4.1-RHEL-8
Affected: Red Hat RHACS-4.1-RHEL-8
Affected: Red Hat RHACS-4.1-RHEL-8
Affected: Red Hat RHACS-4.1-RHEL-8
Affected: Red Hat RHACS-4.1-RHEL-8
Affected: Red Hat Red Hat Enterprise Linux 6
Affected: Red Hat Red Hat Enterprise Linux 7
Affected: Red Hat Red Hat Enterprise Linux 8
Affected: Red Hat Red Hat Software Collections
Published at:
Updated at:

References

Link Tags
https://access.redhat.com/errata/RHSA-2023:7545 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7579 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7580 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7581 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7616 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7656 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7666 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7667 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7694 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7695 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7714 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7770 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7772 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7784 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7785 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7883 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7884 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2023:7885 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2024:0304 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2024:0332 third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2024:0337 third party advisory vendor advisory
https://access.redhat.com/security/cve/CVE-2023-39417 vdb entry third party advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2228111 issue tracking third party advisory
https://www.postgresql.org/support/security/CVE-2023-39417 vendor advisory
https://lists.debian.org/debian-lts-announce/2023/10/msg00003.html
https://security.netapp.com/advisory/ntap-20230915-0002/
https://www.debian.org/security/2023/dsa-5553
https://www.debian.org/security/2023/dsa-5554

Frequently Asked Questions

What is the severity of CVE-2023-39417?
CVE-2023-39417 has been scored as a high severity vulnerability.
How to fix CVE-2023-39417?
To fix CVE-2023-39417, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-39417 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-39417 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-39417?
CVE-2023-39417 affects Red Hat Red Hat Advanced Cluster Security 4.2, Red Hat Red Hat Advanced Cluster Security 4.2, Red Hat Red Hat Advanced Cluster Security 4.2, Red Hat Red Hat Advanced Cluster Security 4.2, Red Hat Red Hat Advanced Cluster Security 4.2, Red Hat Red Hat Enterprise Linux 8, Red Hat Red Hat Enterprise Linux 8, Red Hat Red Hat Enterprise Linux 8, Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support, Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service, Red Hat Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions, Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support, Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support, Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service, Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service, Red Hat Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions, Red Hat Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions, Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support, Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support, Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support, Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support, Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support, Red Hat Red Hat Enterprise Linux 9, Red Hat Red Hat Enterprise Linux 9, Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support, Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support, Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support, Red Hat Red Hat Software Collections for Red Hat Enterprise Linux 7, Red Hat Red Hat Software Collections for Red Hat Enterprise Linux 7, Red Hat RHACS-3.74-RHEL-8, Red Hat RHACS-3.74-RHEL-8, Red Hat RHACS-3.74-RHEL-8, Red Hat RHACS-3.74-RHEL-8, Red Hat RHACS-3.74-RHEL-8, Red Hat RHACS-4.1-RHEL-8, Red Hat RHACS-4.1-RHEL-8, Red Hat RHACS-4.1-RHEL-8, Red Hat RHACS-4.1-RHEL-8, Red Hat RHACS-4.1-RHEL-8, Red Hat Red Hat Enterprise Linux 6, Red Hat Red Hat Enterprise Linux 7, Red Hat Red Hat Enterprise Linux 8, Red Hat Red Hat Software Collections.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.