Vulnerability · Published Aug 11, 2023 · Assigned by redhat

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

Low 3.1

In plain English

A low-severity security flaw in Red Hat Enterprise Linux 6 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.1Low
Exploit odds (30 days)1.1%top 34.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pg_repack1.4.8-1.module_el8.8.0+3487+43ec1b9fALSA-2023:7884
AlmaLinux:9pg_repack1.4.8-1.module_el9.2.0+22+09653793ALSA-2023:7785
AlmaLinux:8pgaudit1.7.0-1.module_el8.8.0+3487+43ec1b9fALSA-2023:7884
AlmaLinux:9pgaudit1.7.0-1.module_el9.2.0+22+09653793ALSA-2023:7785
AlmaLinux:8postgres-decoderbufs1.9.7-1.Final.module_el8.8.0+3487+43ec1b9fALSA-2023:7884
AlmaLinux:9postgres-decoderbufs1.9.7-1.Final.module_el9.2.0+22+09653793ALSA-2023:7785
AlmaLinux:8postgresql15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-contrib15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-contrib15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-docs15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-docs15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-plperl15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-plperl15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-plpython315.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-plpython315.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-pltcl15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-pltcl15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-private-devel15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-private-devel15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-private-libs15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-private-libs15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-server15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-server15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-server-devel15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-server-devel15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-static15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-static15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-test15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-test15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-test-rpm-macros15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-test-rpm-macros15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-upgrade15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-upgrade15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
AlmaLinux:8postgresql-upgrade-devel15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux:9postgresql-upgrade-devel15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
Alpine:v3.20postgresql1414.9-r0ALPINE-CVE-2023-39418
Alpine:v3.20postgresql1515.4-r0ALPINE-CVE-2023-39418
Alpine:v3.21postgresql1515.4-r0ALPINE-CVE-2023-39418
Alpine:v3.22postgresql1515.4-r0ALPINE-CVE-2023-39418
Debian:12postgresql-1515.5-0+deb12u1DSA-5553-1
Debian:12postgresql-1515.5-0+deb12u1DEBIAN-CVE-2023-39418
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.10.0+1858+fcc46a79RLSA-2023:7884
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2023:7884
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.9.0+1525+fc91df60RLSA-2023:7884
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.10.0+40056+df351139RLSA-2023:7884
Rocky Linux:8pgaudit0:1.7.0-1.module+el8.10.0+40056+df351139RLSA-2023:7884
Rocky Linux:8pgaudit0:1.7.0-1.module+el8.9.0+1525+fc91df60RLSA-2023:7884
Rocky Linux:9pgaudit0:1.7.0-1.module+el9.5.0+30637+4391fccaRLSA-2023:7785
Rocky Linux:8postgres-decoderbufs0:1.9.7-1.Final.module+el8.9.0+1525+fc91df60RLSA-2023:7884
Rocky Linux:8postgres-decoderbufs0:1.9.7-1.Final.module+el8.10.0+40056+df351139RLSA-2023:7884
Rocky Linux:9postgres-decoderbufs0:1.9.7-1.Final.module+el9.5.0+30637+4391fccaRLSA-2023:7785

Affected products (as reported)

Weakness: CWE-1220 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

References