What’s Vulnerable › Vulnerabilities

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.

Affected products

How to fix

Upgrade to a fixed version: PostgreSQL 11.21, 12.16, 13.12, 14.9; Red Hat Advanced Cluster Security 4.2 4.2.4-6; Red Hat Enterprise Linux 8 8090020231114113712.a75119d5; Red Hat Enterprise Linux 8.2 Advanced Update Support 8020020231128165246.4cda2c84; Red Hat Enterprise Linux 8.2 Telecommunications Update Service 8020020231128165246.4cda2c84; Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions 8020020231128165246.4cda2c84; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support 8040020231127153301.522a0ee4; Red Hat Enterprise Linux 8.4 Telecommunications Update Service 8040020231127153301.522a0ee4; Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions 8040020231127153301.522a0ee4; Red Hat Enterprise Linux 8.6 Extended Update Support 8060020231114115246.ad008a3a; Red Hat Enterprise Linux 8.8 Extended Update Support 8080020231114105206.63b34585; Red Hat Enterprise Linux 9 0:13.13-1.el9_3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-39417 or the next vulnerability affects your stack