Description
SQL injection in PostgreSQL pg_createsubscriber allows an attacker with pg_create_subscription rights to execute arbitrary SQL as a superuser. The attack takes effect when pg_createsubscriber next runs. Within major versions 17 and 18, minor versions before PostgreSQL 18.4 and 17.10 are affected. Versions before PostgreSQL 17 are unaffected.
Published: 2026-05-14
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An SQL injection flaw exists in the PostgreSQL function pg_createsubscriber that allows an attacker with the pg_create_subscription privilege to inject arbitrary SQL statements. When the next execution of pg_createsubscriber occurs, the application runs the injected code with superuser authority, giving the attacker full control over the database instance, including confidential data, the ability to modify schema or data, and potential to execute system commands if the database configuration permits. The vulnerability is a classic SQL injection weakness (CWE‑89).

Affected Systems

The issue affects PostgreSQL major version 17 from 17.0 up through 17.9, and major version 18 from 18.0 up through 18.3. Any PostgreSQL release prior to 17 is unaffected. Consequently organizations running PostgreSQL 17.1–17.9 or 18.0–18.3 are at risk.

Risk and Exploitability

The CVSS base score of 7.2 indicates a high severity, while no EPSS score is available at this time. The vulnerability is not present in the CISA KEV catalog. Because an attacker must hold pg_create_subscription rights—typically granted to privileged users—this flaw generally requires internal or compromised accounts. However, once enabled, the injected commands execute as superuser, maximizing impact. The flaw is exploitable via normal database usage; no additional network exposure is required beyond legitimate privileged database access.

Generated by OpenCVE AI on May 14, 2026 at 14:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to version 17.10 or a newer minor release, or to 18.4 or newer, to obtain the vendor patch that fixes the injection flaw.
  • Restrict the pg_create_subscription privilege to a minimal set of trusted roles and audit any usage of subscription creation commands.
  • If an immediate upgrade is not feasible, temporarily disable the ability to create subscriptions or block untrusted connection sources from invoking pg_create_subscription until a patch can be applied.

Generated by OpenCVE AI on May 14, 2026 at 14:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6270-1 postgresql-17 security update
History

Thu, 14 May 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 14 May 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Vendors & Products Postgresql
Postgresql postgresql

Thu, 14 May 2026 13:30:00 +0000

Type Values Removed Values Added
Description SQL injection in PostgreSQL pg_createsubscriber allows an attacker with pg_create_subscription rights to execute arbitrary SQL as a superuser. The attack takes effect when pg_createsubscriber next runs. Within major versions 17 and 18, minor versions before PostgreSQL 18.4 and 17.10 are affected. Versions before PostgreSQL 17 are unaffected.
Title PostgreSQL pg_createsubscriber allows SQL injection via subscription name
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Postgresql Postgresql
cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2026-05-14T15:31:52.892Z

Reserved: 2026-04-17T00:43:55.119Z

Link: CVE-2026-6476

cve-icon Vulnrichment

Updated: 2026-05-14T15:31:48.922Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-14T14:16:25.230

Modified: 2026-05-14T16:21:23.190

Link: CVE-2026-6476

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-14T14:45:22Z

Weaknesses