↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

CVE-2023-39417

An extension script is vulnerable if it uses @extowner@ , @extschema@ , or @extschema:...@ inside a quoting construct (dollar quoting, '' , or "" ). No bundled extension is vulnerable. Vulnerable uses do appear in a documentation example and in non-bundled extensions. Hence, the attack prerequisite is an administrator having installed files of a vulnerable, trusted, non-bundled extension. Subject to that prerequisite, this enables an attacker having database-level CREATE privilege to execute arbitrary code as the bootstrap superuser. PostgreSQL will block this attack in the core server, so there's no need to modify individual extensions. The PostgreSQL project thanks Micah Gates, Valerie Woolard, Tim Carey-Smith, and Christoph Berg for reporting this problem.

Version Information

Affected branchIntroducedFixed InFix Published
11—11.212023-08-10
12—12.162023-08-10
13—13.122023-08-10
14—14.92023-08-10
15—15.42023-08-10

CVSS 3.0

Overall Score7.5
Componentcore server
VectorAV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

First published: 2023-08-10

Historical source observations

These dated records preserve the original source claims separately from the reviewed fix list.

center · 2026-10-03 12:08:35.169032+08

  • PostgreSQL 15 · Original minor coordinate: 4
  • PostgreSQL 14 · Original minor coordinate: 9

pgweb · 2026-10-03 12:08:55.967155+08

  • PostgreSQL 15 · Original minor coordinate: 4
  • PostgreSQL 14 · Original minor coordinate: 9

Original security advisory · JSON · All advisories