CVE
CVE-2023-39417
CNA 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 versions
All PostgreSQL vulnerabilities →
- ≥ 15.0, < 15.4Fixed in 15.4
- ≥ 14.0, < 14.9Fixed in 14.9
- ≥ 13.0, < 13.12Fixed in 13.12
- ≥ 12.0, < 12.16Fixed in 12.16
- ≥ 11.0, < 11.21Fixed in 11.21
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- 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
- access.redhat.com/errata/RHSA-2023:7667 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7694 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7695 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7714 · Third Party Advisory
- access.redhat.com/errata/RHSA-2023:7770 · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.