JLSEC-2026-1578: Medium severity julia/libpq_jll vulnerability
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 18.6 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 17.11 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 16.15 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 15.19 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 14.24
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Applications using affected PostgreSQL versions are exposed when they reuse query plans in sessions that also rely on row-level security policies tied to role membership, role attributes, or database ownership. Exploitation requires a privilege or policy change to occur while a session retains a cached plan.
What does an attacker need to exploit it?
The attacker needs low-privileged access and must tailor activity to the application's specific pattern of privilege removal and role-specific row-level security policies. They must be able to continue using a cached plan after access that was previously allowed has been revoked.
How long can stale access persist?
The stale row-level security policy can remain in use until another event invalidates the cache or the affected connection terminates. During that period, reads and modifications that were recently permitted but are now forbidden may still succeed.
Which PostgreSQL versions need remediation?
PostgreSQL versions before 18.6, 17.11, 16.15, 15.19, and 14.24 are affected. Upgrade to the applicable listed release or later.
What can be done if patching is not immediately possible?
Terminate affected database connections after changes to role membership, role attributes, or database ownership, because connection termination ends the session and stops use of its cached plans. This is especially relevant where row-level security permissions are being removed.