8.8

CVE-2023-39417: Postgresql: extension script @substitutions@ within quoting allow sql injection

Modified
AliasesALPINE-CVE-2023-39417SUSE-SU-2023:3341-1SUSE-SU-2023:3343-1
Published 11-08-2023Last modified 26-11-2026

Vulnerability summary

CVE-2023-39417 is a high (CVSS 8.8) vulnerability in debian debian_linux. EPSS estimates a 1.63% chance of exploitation in the next 30 days, higher than 77% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
1.63%
0%100%
Low · -0.04 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 24 · Related 3

Timeline

  1. 11-08-2023
    PublishedVulnerability first disclosed.
  2. 26-11-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

1.63%

Chance of exploitation in the next 30 days

Percentile

77%

Versus all other CVEs

30-day change

Decrease -0.04 pp

From 1.68% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Suse22 products
  • postgresql12&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 12.16-150100.3.44.1
  • postgresql12&distro=SUSE Linux Enterprise Server 12 SP5< 12.16-3.42.1
  • postgresql12&distro=SUSE Linux Enterprise Server 15 SP1-LTSS< 12.16-150100.3.44.1
  • postgresql12&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5< 12.16-3.42.1
  • postgresql12&distro=SUSE Linux Enterprise Server for SAP Applications 15 SP1< 12.16-150100.3.44.1
Opensuse10 products
  • postgresql11&distro=openSUSE Tumbleweed< 11.21-1.1
  • postgresql12&distro=openSUSE Leap 15.4< 12.16-150200.8.47.1
  • postgresql12&distro=openSUSE Leap 15.5< 12.16-150200.8.47.1
  • postgresql12&distro=openSUSE Tumbleweed< 12.16-1.1
  • postgresql13&distro=openSUSE Leap 15.4< 13.12-150200.5.43.1
Alpine5 products
  • postgresql≥ 11.0, < 13.12-r0 | ≥ 13.0, < 13.12-r0
  • postgresql12< 12.16-r0
  • postgresql13< 13.12-r0
  • postgresql14< 14.9-r0
  • postgresql15< 15.4-r0
Ubuntu5 products
  • postgresql-10All versions (No fix recorded)
  • postgresql-12< 12.16-0ubuntu0.20.04.1
  • postgresql-14< 14.9-0ubuntu0.22.04.1
  • postgresql-9.3All versions (No fix recorded)
  • postgresql-9.5< 9.5.25-0ubuntu0.16.04.1+esm5
Debian4 products
  • pgextwlist< 1.15-2+deb12u1 | < 1.19-1+deb13u1 | < 1.20-1
  • postgresql-11< 11.21-0+deb10u2
  • postgresql-15< 15.5-0+deb12u1
  • debian_linuxEOL8.0 | 11.0 | 12.0
Redhat2 products
Postgresql1 product
  • postgresql≥ 11.0, < 11.21 | ≥ 12.0, < 12.16 | ≥ 13.0, < 13.12 | ≥ 14.0, < 14.9 | ≥ 15.0, < 15.4

7 vendors · 49 products

References

51 links
Show all 51 references