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.

Severity (CVSS 3.1)4.2Medium
Exploit odds (30 days)0.2%top 88.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.21postgresql1515.19-r0ALPINE-CVE-2026-14666
Alpine:v3.22postgresql1515.19-r0ALPINE-CVE-2026-14666
Alpine:v3.21postgresql1616.15-r0ALPINE-CVE-2026-14666
Alpine:v3.22postgresql1616.15-r0ALPINE-CVE-2026-14666
Alpine:v3.23postgresql1616.15-r0ALPINE-CVE-2026-14666
Alpine:v3.24postgresql1616.15-r0ALPINE-CVE-2026-14666
Alpine:v3.21postgresql1717.11-r0ALPINE-CVE-2026-14666
Alpine:v3.22postgresql1717.11-r0ALPINE-CVE-2026-14666
Alpine:v3.23postgresql1717.11-r0ALPINE-CVE-2026-14666
Alpine:v3.24postgresql1717.11-r0ALPINE-CVE-2026-14666
Alpine:v3.23postgresql1818.5-r0ALPINE-CVE-2026-14666
Alpine:v3.24postgresql1818.5-r0ALPINE-CVE-2026-14666
Debian:12postgresql-1515.19-0+deb12u1DEBIAN-CVE-2026-14666
Debian:13postgresql-1717.11-0+deb13u1DEBIAN-CVE-2026-14666
Debian:14postgresql-1818.6-1DEBIAN-CVE-2026-14666
Ubuntu:22.04:LTSpostgresql-1414.24-0ubuntu0.22.04.1USN-8653-1
Ubuntu:22.04:LTSpostgresql-1414.24-0ubuntu0.22.04.1UBUNTU-CVE-2026-14666
Ubuntu:24.04:LTSpostgresql-1616.15-0ubuntu0.24.04.1USN-8653-1
Ubuntu:24.04:LTSpostgresql-1616.15-0ubuntu0.24.04.1UBUNTU-CVE-2026-14666
Ubuntu:26.04:LTSpostgresql-1818.6-0ubuntu0.26.04.1UBUNTU-CVE-2026-14666
Ubuntu:26.04:LTSpostgresql-1818.6-0ubuntu0.26.04.1USN-8653-1

Affected products (as reported)

VendorProductVersions
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

References