Unrated severityNVD Advisory· Published Aug 11, 2023· Updated Nov 21, 2025
Postgresql: merge fails to enforce update or select row security policies
CVE-2023-39418
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
42cpe:/a:redhat:enterprise_linux:8::appstream+ 5 more
- cpe:/a:redhat:enterprise_linux:8::appstreamrange: 8090020231114113548.a75119d5
- cpe:/a:redhat:enterprise_linux:9::appstreamrange: 9030020231120082734.rhel9
- cpe:/o:redhat:enterprise_linux:6
- cpe:/o:redhat:enterprise_linux:7
- cpe:/o:redhat:enterprise_linux:8
- cpe:/o:redhat:enterprise_linux:9
- Red Hat/Red Hat Enterprise Linux 8.8 Extended Update Supportv5cpe:/a:redhat:rhel_eus:8.8::appstreamRange: 8080020231113134015.63b34585
- Red Hat/Red Hat Enterprise Linux 9.2 Extended Update Supportv5cpe:/a:redhat:rhel_eus:9.2::appstreamRange: 9020020231115020618.rhel9
- cpe:/a:redhat:rhel_software_collections:3
- osv-coords32 versionspkg:bitnami/postgresqlpkg:rpm/almalinux/pgauditpkg:rpm/almalinux/pg_repackpkg:rpm/almalinux/postgres-decoderbufspkg:rpm/almalinux/postgresqlpkg:rpm/almalinux/postgresql-contribpkg:rpm/almalinux/postgresql-docspkg:rpm/almalinux/postgresql-plperlpkg:rpm/almalinux/postgresql-plpython3pkg:rpm/almalinux/postgresql-pltclpkg:rpm/almalinux/postgresql-private-develpkg:rpm/almalinux/postgresql-private-libspkg:rpm/almalinux/postgresql-serverpkg:rpm/almalinux/postgresql-server-develpkg:rpm/almalinux/postgresql-staticpkg:rpm/almalinux/postgresql-testpkg:rpm/almalinux/postgresql-test-rpm-macrospkg:rpm/almalinux/postgresql-upgradepkg:rpm/almalinux/postgresql-upgrade-develpkg:rpm/opensuse/postgresql15&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/postgresql15&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/postgresql15&distro=openSUSE%20Tumbleweedpkg:rpm/suse/postgresql15&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/postgresql15&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/postgresql15&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4pkg:rpm/suse/postgresql15&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP4pkg:rpm/suse/postgresql15&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP5pkg:rpm/suse/postgresql15&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/postgresql15&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/postgresql15&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/postgresql15&distro=SUSE%20Manager%20Proxy%204.2pkg:rpm/suse/postgresql15&distro=SUSE%20Manager%20Server%204.2
>= 15.0.0, < 15.4.0+ 31 more
- (no CPE)range: >= 15.0.0, < 15.4.0
- (no CPE)range: < 1.7.0-1.module_el9.2.0+22+09653793
- (no CPE)range: < 1.4.8-1.module_el9.2.0+22+09653793
- (no CPE)range: < 1.9.7-1.Final.module_el9.2.0+22+09653793
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.5-1.module_el9.3.0+52+21733919
- (no CPE)range: < 15.4-150200.5.12.1
- (no CPE)range: < 15.4-150200.5.12.1
- (no CPE)range: < 15.4-1.1
- (no CPE)range: < 15.4-150200.5.12.1
- (no CPE)range: < 15.4-150200.5.12.1
- (no CPE)range: < 15.4-150200.5.12.1
- (no CPE)range: < 15.4-150200.5.12.1
- (no CPE)range: < 15.4-150200.5.12.1
- (no CPE)range: < 15.4-3.12.1
- (no CPE)range: < 15.4-3.12.1
- (no CPE)range: < 15.4-3.12.1
- (no CPE)range: < 15.4-150200.5.12.1
- (no CPE)range: < 15.4-150200.5.12.1
Patches
Vulnerability mechanics
References
8- access.redhat.com/errata/RHSA-2023:7785mitrevendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2023:7883mitrevendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2023:7884mitrevendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2023:7885mitrevendor-advisoryx_refsource_REDHAT
- access.redhat.com/security/cve/CVE-2023-39418mitrevdb-entryx_refsource_REDHAT
- bugzilla.redhat.com/show_bug.cgimitreissue-trackingx_refsource_REDHAT
- git.postgresql.org/gitweb/mitre
- www.postgresql.org/support/security/CVE-2023-39418/mitre
News mentions
0No linked articles in our index yet.