2084AI Security Observatory

CVE

CVE-2023-39417

CVE-2023-39417HIGH 8.8EPSS 77%

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

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.