Vulnerability · Published Aug 13, 2026 · Assigned by PostgreSQL
CVE-2026-14666PostgreSQL row security caching disregards role modifications
Medium 4.2
In plain English
A medium-severity security flaw in PostgreSQL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Incomplete tracking in PostgreSQL of changes to role membership, role attributes, and database ownership allows a query to continue using cached row-level security policies after those changes require a different policy, via plan reuse. Stale policies continue until some other event invalidates the cache or connection termination ends the session. This permits a user to complete reads and modifications that were recently permitted but now forbidden. An attacker must tailor an attack to a particular application's pattern of privilege removal and role-specific row security policies. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | postgresql15 | 15.19-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.22 | postgresql15 | 15.19-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.21 | postgresql16 | 16.15-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.22 | postgresql16 | 16.15-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.23 | postgresql16 | 16.15-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.24 | postgresql16 | 16.15-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.21 | postgresql17 | 17.11-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.22 | postgresql17 | 17.11-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.23 | postgresql17 | 17.11-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.24 | postgresql17 | 17.11-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.23 | postgresql18 | 18.5-r0 | ALPINE-CVE-2026-14666 |
| Alpine:v3.24 | postgresql18 | 18.5-r0 | ALPINE-CVE-2026-14666 |
| Debian:12 | postgresql-15 | 15.19-0+deb12u1 | DEBIAN-CVE-2026-14666 |
| Debian:13 | postgresql-17 | 17.11-0+deb13u1 | DEBIAN-CVE-2026-14666 |
| Debian:14 | postgresql-18 | 18.6-1 | DEBIAN-CVE-2026-14666 |
| Ubuntu:22.04:LTS | postgresql-14 | 14.24-0ubuntu0.22.04.1 | USN-8653-1 |
| Ubuntu:22.04:LTS | postgresql-14 | 14.24-0ubuntu0.22.04.1 | UBUNTU-CVE-2026-14666 |
| Ubuntu:24.04:LTS | postgresql-16 | 16.15-0ubuntu0.24.04.1 | USN-8653-1 |
| Ubuntu:24.04:LTS | postgresql-16 | 16.15-0ubuntu0.24.04.1 | UBUNTU-CVE-2026-14666 |
| Ubuntu:26.04:LTS | postgresql-18 | 18.6-0ubuntu0.26.04.1 | UBUNTU-CVE-2026-14666 |
| Ubuntu:26.04:LTS | postgresql-18 | 18.6-0ubuntu0.26.04.1 | USN-8653-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | PostgreSQL | 18 – before 18.617 – before 17.1116 – before 16.1515 – before 15.190 – before 14.24 |
Weakness: CWE-1250 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N