CVE-2023-39417

HIGHCVSS 8.8/10EPSS 1.57%

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
8.8/10

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
1.57%

72.3th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PostgresqlPostgresql>= 11.0, < 11.21
PostgresqlPostgresql>= 12.0, < 12.16
PostgresqlPostgresql>= 13.0, < 13.12
PostgresqlPostgresql>= 14.0, < 14.9
PostgresqlPostgresql>= 15.0, < 15.4
RedhatSoftware CollectionsAll versions
RedhatEnterprise Linux8.0
RedhatEnterprise Linux9.0
DebianDebian Linux8.0
DebianDebian Linux11.0
DebianDebian Linux12.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2023-39417?
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.
How severe is CVE-2023-39417?
CVE-2023-39417 has a CVSS score of 8.8/10 (HIGH severity). The EPSS model estimates a 1.57% probability of exploitation in the next 30 days.
How do I fix CVE-2023-39417?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2023-39417?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST