cve.bz

CVE-2025-12817 Missing Authorization

3.1 lowEPSS 0.2%

Low (3.1). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
Missing authorization in PostgreSQL CREATE STATISTICS command allows a table owner to achieve denial of service against other CREATE STATISTICS users by creating in any schema. A later CREATE STATISTICS for the same name, from a user having the CREATE privilege, would then fail. Versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 are affected.

Severity

CVSS 3.1

3.1 low
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 16th 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: partial, assessed 2025-11-13. 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-862 Missing Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-12817 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-12817?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-12817?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-2025-12817 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.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11postgresql-1313.23-0+deb11u1DLA-4420-1
Debian12postgresql-1515.15-0+deb12u1DEBIAN-CVE-2025-12817
Debian13postgresql-1717.7-0+deb13u1DEBIAN-CVE-2025-12817
Debian14postgresql-1818.1-1DEBIAN-CVE-2025-12817
Ubuntu20.04:LTSpostgresql-12no fix listedUBUNTU-CVE-2025-12817
Ubuntu22.04:LTSpostgresql-1414.20-0ubuntu0.22.04.1UBUNTU-CVE-2025-12817 USN-7908-1
Ubuntu24.04:LTSpostgresql-1616.11-0ubuntu0.24.04.1UBUNTU-CVE-2025-12817 USN-7908-1
Ubuntu25.10postgresql-1717.7-0ubuntu0.25.10.1UBUNTU-CVE-2025-12817 USN-7908-1
Ubuntu26.04:LTSpostgresql-1818.1-1ubuntu1UBUNTU-CVE-2025-12817
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2025-12817
UbuntuPro:16.04:LTSpostgresql-9.5no fix listedUBUNTU-CVE-2025-12817
UbuntuPro:18.04:LTSpostgresql-10no fix listedUBUNTU-CVE-2025-12817
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.9.0+20664+9c30cf7fRHSA-2026:0523
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el8.9.0+19797+c4ce5969RHSA-2026:0524
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.5.1-1.module+el8.10.0+22551+c0330dc9RHSA-2026:0519
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.5.0-1.module+el8.9.0+20664+9c30cf7fRHSA-2026:0523
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el8.9.0+19797+c4ce5969RHSA-2026:0524
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:16.0-1.module+el8.10.0+20413+d8116364RHSA-2026:0519
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.9.0+20664+9c30cf7fRHSA-2026:0523
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969RHSA-2026:0524
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:2.4.0-1.Final.module+el8.10.0+20413+d8116364RHSA-2026:0519
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:15.15-1.module+el8.10.0+23782+2d6b2a31RHSA-2026:0524
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:16.11-1.module+el8.10.0+23783+d9790420RHSA-2026:0519
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:13.23-1.module+el8.10.0+23781+c6a61bc8RHSA-2026:0523
57 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morepostgresql1515.15-150200.5.49.2SUSE-SU-2025:4406-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morepostgresql1616.11-150200.5.35.1SUSE-SU-2025:4387-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morepostgresql1818.1-150200.5.3.1SUSE-SU-2025:4364-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 morepostgresql1717.7-150200.5.19.1SUSE-SU-2025:4364-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 morepostgresql1414.20-150200.5.64.2SUSE-SU-2025:4485-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 5 morepostgresql1313.23-150200.5.78.2SUSE-SU-2025:4486-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morepostgresql18-150300.10.30.2SUSE-SU-2025:4364-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 morepostgresql18-150400.4.21.2SUSE-SU-2025:4364-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morepostgresql18-150500.10.12.2SUSE-SU-2025:4364-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP6 and 3 morepostgresql1717.7-150600.13.19.1SUSE-SU-2025:4363-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP6 and 3 morepostgresql1818.1-150600.13.3.1SUSE-SU-2025:4363-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Legacy 15 SP7, Linux Enterprise Module for Package Hub 15 SP6 and 3 morepostgresql1616.11-150600.16.25.1SUSE-SU-2025:4388-1
24 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6postgresql18-150600.17.9.1SUSE-SU-2025:4363-1
openSUSELeap 15.6postgresql1313.23-150600.14.14.1SUSE-SU-2025:4325-1
openSUSELeap 15.6postgresql1414.20-150600.16.23.1SUSE-SU-2025:4371-1
openSUSELeap 15.6postgresql1515.15-150600.16.23.1SUSE-SU-2025:4484-1
openSUSELeap 15.6postgresql1616.11-150600.16.25.1SUSE-SU-2025:4388-1
openSUSELeap 15.6postgresql1717.7-150600.13.19.1SUSE-SU-2025:4363-1
openSUSELeap 15.6postgresql1818.1-150600.13.3.1SUSE-SU-2025:4363-1
openSUSELeap 16.0postgresql18-160000.1.1openSUSE-SU-2026:20131-1
openSUSELeap 16.0postgresql1313.23-160000.1.1openSUSE-SU-2026:20449-1
openSUSELeap 16.0postgresql13-pgaudit1.5.3-160000.3.1openSUSE-SU-2026:20131-1
openSUSELeap 16.0postgresql13-pgvector, postgresql14-pgvector, postgresql15-pgvector and 3 more0.8.1-160000.1.1openSUSE-SU-2026:20131-1
openSUSELeap 16.0postgresql1414.21-160000.1.1openSUSE-SU-2026:20265-1
16 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2026:0523
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+3095+ee60d910ALSA-2026:0523
AlmaLinux8pg_repack1.4.8-1.module_el8.9.0+3706+885c732eALSA-2026:0524
AlmaLinux8pg_repack1.5.1-1.module_el8.10.0+3930+ecf33554ALSA-2026:0519
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2026:0523
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+3095+ee60d910ALSA-2026:0523
AlmaLinux8pgaudit1.7.0-1.module_el8.9.0+3706+885c732eALSA-2026:0524
AlmaLinux8pgaudit16.0-1.module_el8.10.0+3798+606ebb9fALSA-2026:0519
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2026:0523
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+3095+ee60d910ALSA-2026:0523
AlmaLinux8postgres-decoderbufs1.9.7-1.Final.module_el8.9.0+3706+885c732eALSA-2026:0524
AlmaLinux8postgres-decoderbufs2.4.0-1.Final.module_el8.10.0+3798+606ebb9fALSA-2026:0519
15 more for AlmaLinux in the JSON.
Rocky Linux8pg_repack0:1.4.6-3.module+el8.10.0+1862+29bef648RLSA-2026:0523
Rocky Linux8pg_repack0:1.4.6-3.module+el8.10.0+40055+b85d5ce2RLSA-2026:0523
Rocky Linux8pg_repack0:1.4.6-3.module+el8.9.0+1594+4a6adae9RLSA-2026:0523
Rocky Linux8pg_repack0:1.4.6-3.module+el8.9.0+1603+444d1b54RLSA-2026:0523
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2026:0524
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1858+fcc46a79RLSA-2026:0524
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+40056+df351139RLSA-2026:0524
Rocky Linux8pg_repack0:1.4.8-1.module+el8.9.0+1525+fc91df60RLSA-2026:0524
Rocky Linux8pg_repack0:1.5.1-1.module+el8.10.0+1900+d7340343RLSA-2026:0519
Rocky Linux8pg_repack0:1.5.1-1.module+el8.10.0+40057+c37a0e3dRLSA-2026:0519
Rocky Linux8pgaudit0:1.5.0-1.module+el8.10.0+40055+b85d5ce2RLSA-2026:0523
Rocky Linux8pgaudit0:1.5.0-1.module+el8.9.0+1594+4a6adae9RLSA-2026:0523
32 more for Rocky Linux in the JSON.
Alpinev3.19, v3.20, v3.21 and 3 morepostgresql1616.11-r0ALPINE-CVE-2025-12817
Alpinev3.19, v3.20, v3.22postgresql1515.15-r0ALPINE-CVE-2025-12817
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1717.7-r0ALPINE-CVE-2025-12817
Alpinev3.23, v3.24postgresql1818.1-r0ALPINE-CVE-2025-12817
Azure Linux2postgresql14.20-1AZL-70396
Azure Linux3postgresql16.11-1AZL-70169
Alpaquita23postgresql1515.15-r0BELL-CVE-2025-12817
Alpaquita25postgresql1717.7-r0BELL-CVE-2025-12817
Alpaquitastreampostgresql1818.1-r0BELL-CVE-2025-12817

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; Microsoft's Azure Linux vulnerability data, MIT; 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 Low.

Red Hat's statement

This issue is rated Low severity by Red Hat Product Security, because exploitation is straightforward once an attacker already holds table-owner privileges. The attack complexity is Low, as no unusual conditions, timing requirements, or unpredictable states are needed; a table owner can simply choose any schema name and intentionally create a statistics object with a conflicting name, which is only trivial to perform and does not require prior knowledge beyond selecting an arbitrary identifier. The availability impact remains Low, since only the creation of a specific statistics object is blocked and normal database operations continue without disruption. There is no confidentiality or integrity impact, and the flaw does not allow privilege escalation. For these reasons, despite a Medium-range CVSS score, the overall impact to Red Hat products is considered Low.

Red Hat's mitigation

No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10postgresql16-0:16.11-1.el10_1Fixed 2026-01-13RHSA-2026:0525
Red Hat Enterprise Linux 10.0 Extended Update Supportpostgresql16-0:16.11-1.el10_0Fixed 2026-01-12RHSA-2026:0456
Red Hat Enterprise Linux 8postgresql:16-8100020251205224429.489197e6Fixed 2026-01-13RHSA-2026:0519
Red Hat Enterprise Linux 8postgresql:13-8100020251205223240.489197e6Fixed 2026-01-13RHSA-2026:0523
Red Hat Enterprise Linux 8postgresql:15-8100020251205224411.489197e6Fixed 2026-01-13RHSA-2026:0524
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:13-8040020251125121223.522a0ee4Fixed 2026-01-08RHSA-2026:0265
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpostgresql:13-8040020251125121223.522a0ee4Fixed 2026-01-08RHSA-2026:0265
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpostgresql:13-8060020251125073610.ad008a3aFixed 2026-01-08RHSA-2026:0267
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepostgresql:13-8060020251125073610.ad008a3aFixed 2026-01-08RHSA-2026:0267
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionspostgresql:13-8060020251125073610.ad008a3aFixed 2026-01-08RHSA-2026:0267
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepostgresql:15-8080020251124123757.63b34585Fixed 2026-01-08RHSA-2026:0266
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepostgresql:13-8080020251209095115.63b34585Fixed 2026-01-08RHSA-2026:0270
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspostgresql:15-8080020251124123757.63b34585Fixed 2026-01-08RHSA-2026:0266
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspostgresql:13-8080020251209095115.63b34585Fixed 2026-01-08RHSA-2026:0270
Red Hat Enterprise Linux 9postgresql-0:13.23-1.el9_7Fixed 2026-01-13RHSA-2026:0491
Red Hat Enterprise Linux 9postgresql:15-9070020251208080035.rhel9Fixed 2026-01-13RHSA-2026:0492
Red Hat Enterprise Linux 9postgresql:16-9070020251208075121.rhel9Fixed 2026-01-13RHSA-2026:0493
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 7postgresqlOut of support scope
Red Hat Enterprise Linux 8postgresql:12/postgresqlOut of support scope
10 more in the JSON and on Red Hat's page.

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-2025-12817.

Attack patterns (CAPEC)

  • CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High

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

References

Check your stackJSON