| Name | CVE-2025-12817 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| postgresql-13 (PTS) | bullseye | 13.16-0+deb11u1 | vulnerable |
| bullseye (security) | 13.22-0+deb11u1 | vulnerable | |
| postgresql-15 (PTS) | bookworm | 15.14-0+deb12u1 | vulnerable |
| bookworm (security) | 15.10-0+deb12u1 | vulnerable | |
| postgresql-17 (PTS) | trixie | 17.6-0+deb13u1 | vulnerable |
| sid | 17.6-1 | vulnerable | |
| postgresql-18 (PTS) | forky, sid | 18.1-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| postgresql-13 | source | (unstable) | (unfixed) | |||
| postgresql-15 | source | (unstable) | (unfixed) | |||
| postgresql-17 | source | (unstable) | (unfixed) | |||
| postgresql-18 | source | (unstable) | 18.1-1 |
[trixie] - postgresql-17 <no-dsa> (Minor issue)
[bookworm] - postgresql-15 <no-dsa> (Minor issue)
[bullseye] - postgresql-13 <postponed> (Minor issue)
https://www.postgresql.org/about/news/postgresql-181-177-1611-1515-1420-and-1323-released-3171/
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=5e4fcbe531c668b4112beedde97aac79724074c5 (master)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=00eb646ea43410e5df77fed96f4a981e66811796 (REL_18_1)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=e2fb3dfa817fbe89494a62c100e9cb442f4d6b15 (REL_17_7)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=2393d374ae9c0bc8327adc80fe4490edb05be167 (REL_15_15)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=8a2530ebcdef1aafa08ad1d019aec298dcebb952 (REL_13_23)