CVE-2023-39418

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

MEDIUM
4.3
CVSS Score
Published: August 11, 2023 at 12:19 PM UTC
Updated: June 17, 2026 at 06:12 AM UTC
3 products affected across 3 vendorsDebian LinuxEnterprise LinuxPostgreSQL

Using Red Hat Enterprise Linux 8 by Red Hat?

Get instant alerts when new vulnerabilities affect Red Hat Enterprise Linux 8 - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.3
Exploit prediction
EPSS 1%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

15.0 ≤ v < 15.4
Affected range stops below 15.4, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6 (unaffected)
Vendor states this is fixed in 7 (unaffected)
Vendor states this is fixed in 8080020231113134015.63b34585 (unaffected)
Vendor states this is fixed in 8090020231114113548.a75119d5 (unaffected)
Vendor states this is fixed in 9020020231115020618.rhel9 (unaffected)
Vendor states this is fixed in 9030020231120082734.rhel9 (unaffected)

References (10)

Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:7785
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:7883
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:7884
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:7885
VDB Entryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/security/cve/CVE-2023-39418
Issue Trackingx_refsource_REDHATPatchThird Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2228112

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-1220NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card