Vulnerabilities · 2023 · Postgresql
CVE-2023-39417
Postgresql vulnerability
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.
Affected products
Postgresql, Software Collections, Enterprise Linux, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Postgresql runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- www.postgresql.org/support/security/CVE-2023-39417 · Vendor Advisory
- access.redhat.com/errata/RHSA-2023:7545 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7579 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7580 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7581 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7616 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7656 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7666 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2023-39417
- cve.org/CVERecord?id=CVE-2023-39417
More vulnerabilities in Postgresql products
CVE-2025-49146CVE-2024-10979CVE-2024-10978CVE-2024-10977CVE-2024-10976CVE-2024-7348CVE-2024-4317CVE-2024-1597All 168
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.