cve.bz

CVE-2026-6476 postgresql postgresql: SQL Injection

7.2 highEPSS 0.3%Fix available

High (7.2) in postgresql postgresql. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-6476 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-6476?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-6476?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-6476 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 17.0 before 17.10
postgresql:postgresqlfrom 18.0 before 18.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13postgresql-1717.10-0+deb13u1DEBIAN-CVE-2026-6476 DSA-6270-1
Debian14postgresql-1818.4-1DEBIAN-CVE-2026-6476
Ubuntu20.04:LTSpostgresql-12no fix listedUBUNTU-CVE-2026-6476
Ubuntu22.04:LTSpostgresql-1414.23-0ubuntu0.22.04.1UBUNTU-CVE-2026-6476
Ubuntu24.04:LTSpostgresql-1616.14-0ubuntu0.24.04.1UBUNTU-CVE-2026-6476
Ubuntu25.10postgresql-1717.10-0ubuntu0.25.10.1UBUNTU-CVE-2026-6476
Ubuntu26.04:LTSpostgresql-1818.4-0ubuntu0.26.04.1UBUNTU-CVE-2026-6476
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2026-6476
UbuntuPro:16.04:LTSpostgresql-9.5no fix listedUBUNTU-CVE-2026-6476
UbuntuPro:18.04:LTSpostgresql-10no fix listedUBUNTU-CVE-2026-6476
Red Hatenterprise_linux:9::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.5.3-1.module+el9.8.0+23739+1c42644cRHSA-2026:26204 RHSA-2026:67848
Red Hatenterprise_linux:9::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:18.0-1.module+el9.8.0+23739+1c42644cRHSA-2026:26204 RHSA-2026:67848
Red Hatenterprise_linux:9::appstreampgvector, pgvector-debuginfo, pgvector-debugsource0:0.8.1-1.module+el9.8.0+23739+1c42644cRHSA-2026:26204 RHSA-2026:67848
Red Hatenterprise_linux:9::appstreampostgis, postgis-docs, postgis-utils and 6 more0:3.6.1-2.module+el9.8.0+23739+1c42644cRHSA-2026:26204
Red Hatenterprise_linux:9::appstreampostgis, postgis-docs, postgis-utils and 6 more0:3.6.1-4.module+el9.8.0+24879+1364ef12RHSA-2026:67848
Red Hatenterprise_linux:9::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:3.3.1-1.Final.module+el9.8.0+23739+1c42644cRHSA-2026:26204 RHSA-2026:67848
Red Hatenterprise_linux:9::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:18.4-2.module+el9.8.0+24359+da7fad50RHSA-2026:26204
Red Hatenterprise_linux:9::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:18.6-1.module+el9.8.0+24816+5c11f535RHSA-2026:67848
Red Hatenterprise_linux:10.2postgresql18, postgresql18-docs, postgresql18-test and 24 more0:18.4-1.el10_2RHSA-2026:27742
Red Hatenterprise_linux:10.2postgresql18, postgresql18-docs, postgresql18-test and 24 more0:18.6-1.el10_2RHSA-2026:67280
Red Hathummingbird:1postgresql, postgresql18, postgresql-docs and 12 more0:18.4-0.1.hum1RHSA-2026:22878
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0postgresql1717.10-160000.1.1SUSE-SU-2026:22149-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0postgresql1818.4-160000.1.1SUSE-SU-2026:22077-1
openSUSELeap 16.0postgresql1717.10-160000.1.1openSUSE-SU-2026:20970-1
openSUSETumbleweedpostgresql1717.10-1.1openSUSE-SU-2026:10809-1
openSUSETumbleweedpostgresql1818.4-1.1openSUSE-SU-2026:10828-1
AlmaLinux9pg_repack1.5.3-1.module_el9.8.0+234+5456f35dALSA-2026:26204 ALSA-2026:67848
AlmaLinux9pgaudit18.0-1.module_el9.8.0+234+5456f35dALSA-2026:26204 ALSA-2026:67848
AlmaLinux9pgvector0.8.1-1.module_el9.8.0+234+5456f35dALSA-2026:26204 ALSA-2026:67848
AlmaLinux9postgis, postgis-docs, postgis-utils and 2 more3.6.1-2.module_el9.8.0+239+6fb51d38ALSA-2026:26204
AlmaLinux9postgis, postgis-docs, postgis-utils and 2 more3.6.1-4.module_el9.8.0+310+22372bccALSA-2026:67848
AlmaLinux9postgres-decoderbufs3.3.1-1.Final.module_el9.8.0+234+5456f35dALSA-2026:26204 ALSA-2026:67848
AlmaLinux9postgresql, postgresql-docs, postgresql-test and 12 more18.4-2.module_el9.8.0+280+5ad12178ALSA-2026:26204
AlmaLinux9postgresql, postgresql-docs, postgresql-test and 12 more18.6-1.module_el9.8.0+310+22372bccALSA-2026:67848
AlmaLinux10postgresql18-test-rpm-macros18.4-1.el10_2ALSA-2026:27742
AlmaLinux10postgresql18-test-rpm-macros18.6-1.el10_2ALSA-2026:67280
Rocky Linux9pg_repack0:1.5.3-1.module+el9.8.0+40158+490b3c67RLSA-2026:67848
Rocky Linux9pg_repack0:1.5.3-1.module+el9.8.0+40213+f1e225a4RLSA-2026:67848
Rocky Linux9pgaudit0:18.0-1.module+el9.8.0+40158+490b3c67RLSA-2026:67848
Rocky Linux9pgaudit0:18.0-1.module+el9.8.0+40213+f1e225a4RLSA-2026:67848
Rocky Linux9pgvector0:0.8.1-1.module+el9.8.0+40158+490b3c67RLSA-2026:67848
Rocky Linux9pgvector0:0.8.1-1.module+el9.8.0+40213+f1e225a4RLSA-2026:67848
Rocky Linux9postgres-decoderbufs0:3.3.1-1.Final.module+el9.8.0+40158+490b3c67RLSA-2026:67848
Rocky Linux9postgres-decoderbufs0:3.3.1-1.Final.module+el9.8.0+40213+f1e225a4RLSA-2026:67848
Rocky Linux10postgresql180:18.6-1.el10_2RLSA-2026:67280
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1717.10-r0ALPINE-CVE-2026-6476
Alpinev3.23, v3.24postgresql1818.4-r0ALPINE-CVE-2026-6476
Alpaquita25postgresql1717.10-r0BELL-CVE-2026-6476
Alpaquitastreampostgresql1818.4-r0BELL-CVE-2026-6476

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10postgresql18-0:18.4-1.el10_2Fixed 2026-06-22RHSA-2026:27742
Red Hat Enterprise Linux 10postgresql18-0:18.6-1.el10_2Fixed 2026-09-14RHSA-2026:67280
Red Hat Enterprise Linux 9postgresql:18-9080020260605125734.rhel9Fixed 2026-06-16RHSA-2026:26204
Red Hat Enterprise Linux 9postgresql:18-9080020260914093252.rhel9Fixed 2026-09-16RHSA-2026:67848
Red Hat Hardened Imagespostgresql18-main-18.4-0.1.hum1Fixed 2026-06-03RHSA-2026:22878
Red Hat Enterprise Linux 10postgresql16Not affected
Red Hat Enterprise Linux 6postgresqlNot affected
Red Hat Enterprise Linux 7postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:12/postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:15/postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:16/postgresqlNot affected
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Enterprise Linux 9postgresql:15/postgresqlNot affected
Red Hat Enterprise Linux 9postgresql:16/postgresqlNot affected
Red Hat Hardened Imagespostgresql17Not affected
Self-service automation portal 2ansible-automation-platform/bootc-automation-portal-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-6476.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON