CVE-2023-39417
Last modified
CVE-2023-39417 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.. EPSS estimates a 1.57% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Postgresql | Postgresql | >= 11.0, < 11.21 |
| Postgresql | Postgresql | >= 12.0, < 12.16 |
| Postgresql | Postgresql | >= 13.0, < 13.12 |
| Postgresql | Postgresql | >= 14.0, < 14.9 |
| Postgresql | Postgresql | >= 15.0, < 15.4 |
| Redhat | Software Collections | All versions |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Enterprise Linux | 9.0 |
| Debian | Debian Linux | 8.0 |
| Debian | Debian Linux | 11.0 |
| Debian | Debian Linux | 12.0 |
References
- https://access.redhat.com/errata/RHSA-2023:7545Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7579Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7580Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7581Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7616Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7656Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7666Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7667Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7694Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7695Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7714Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7770Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7772Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7784Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7785Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7883Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7884Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7885Third Party Advisory
- https://access.redhat.com/errata/RHSA-2024:0304Third Party Advisory
- https://access.redhat.com/errata/RHSA-2024:0332Third Party Advisory
- https://access.redhat.com/errata/RHSA-2024:0337Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2023-39417Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2228111Issue Tracking, Third Party Advisory
- https://www.postgresql.org/support/security/CVE-2023-39417Vendor Advisory
- https://access.redhat.com/errata/RHSA-2023:7545Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7579Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7580Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7581Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7616Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7656Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7666Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7667Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7694Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7695Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7714Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7770Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7772Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7784Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7785Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7883Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7884Third Party Advisory
- https://access.redhat.com/errata/RHSA-2023:7885Third Party Advisory
- https://access.redhat.com/errata/RHSA-2024:0304Third Party Advisory
- https://access.redhat.com/errata/RHSA-2024:0332Third Party Advisory
- https://access.redhat.com/errata/RHSA-2024:0337Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2023-39417Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2228111Issue Tracking, Third Party Advisory
- https://www.postgresql.org/support/security/CVE-2023-39417Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-39417?
How severe is CVE-2023-39417?
How do I fix CVE-2023-39417?
Are you affected by CVE-2023-39417?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
