← back
CVE-2023-39418

Postgresql: merge fails to enforce update or select row security policies

CVSS 3.1 LOWEPSS 1.0%CWE-1220
In short

PostgreSQL's MERGE command doesn't properly check security rules when updating rows, potentially allowing users to save data that should be blocked by security policies.

Technical detail

The MERGE command in PostgreSQL fails to enforce row security policies (RLS) for UPDATE and SELECT operations on new rows, allowing an attacker with MERGE privileges to bypass row-level security restrictions and insert rows that would normally be rejected by UPDATE or SELECT policies.

Summary generated and translated by AI from the official 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.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →