What’s Vulnerable › Vulnerabilities

CVE-2023-39418: Postgresql: merge fails to enforce update or select row security policies

Description

A vulnerability was found in PostgreSQL with the use of the MERGE command, which fails to test new rows against row security policies defined for UPDATE and SELECT. If UPDATE and SELECT policies forbid some rows that INSERT policies do not forbid, a user could store such rows.

Affected products

How to fix

Upgrade to a fixed version: PostgreSQL 15.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-39418 or the next vulnerability affects your stack