Skip to content
OpenAdvisories

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

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Software Collections — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 postgresql-15 15.5-0+deb12u1 DSA-5553-1
ReleasePackageFixed inAdvisory
RHEL 9 pg_repack 1.4.8-1.module+el9.2.0+17405+aeb9ec60 RHSA-2023:7785
RHEL 9 pgaudit 1.7.0-1.module+el9.2.0+17405+aeb9ec60 RHSA-2023:7785
RHEL 9 postgres-decoderbufs 1.9.7-1.Final.module+el9.2.0+17405+aeb9ec60 RHSA-2023:7785
RHEL 9 postgresql +14 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 RHSA-2023:7785
RHEL 8 pg_repack 1.4.8-1.module+el8.9.0+19797+c4ce5969 RHSA-2023:7884
RHEL 8 pgaudit 1.7.0-1.module+el8.9.0+19797+c4ce5969 RHSA-2023:7884
RHEL 8 postgres-decoderbufs 1.9.7-1.Final.module+el8.9.0+19797+c4ce5969 RHSA-2023:7884
RHEL 8 postgresql +14 15.5-1.module+el8.9.0+20663+03952ce4 RHSA-2023:7884
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.2 EUS pg_repack 1.4.8-1.module+el9.2.0+17405+aeb9ec60 RHSA-2023:7885
RHEL 9.2 EUS pgaudit 1.7.0-1.module+el9.2.0+17405+aeb9ec60 RHSA-2023:7885
RHEL 9.2 EUS postgres-decoderbufs 1.9.7-1.Final.module+el9.2.0+17405+aeb9ec60 RHSA-2023:7885
RHEL 9.2 EUS postgresql +14 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 RHSA-2023:7885
RHEL 8.8 EUS pg_repack 1.4.8-1.module+el8.8.0+17071+aaaceaa4 RHSA-2023:7883
RHEL 8.8 EUS pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4 RHSA-2023:7883
RHEL 8.8 EUS postgres-decoderbufs 1.9.7-1.Final.module+el8.8.0+17071+aaaceaa4 RHSA-2023:7883
RHEL 8.8 EUS postgresql +14 15.5-1.module+el8.8.0+20658+5fb3eedd RHSA-2023:7883

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 pg_repack 1.4.8-1.module_el9.2.0+22+09653793 ALSA-2023:7785
AlmaLinux 9 pgaudit 1.7.0-1.module_el9.2.0+22+09653793 ALSA-2023:7785
AlmaLinux 9 postgres-decoderbufs 1.9.7-1.Final.module_el9.2.0+22+09653793 ALSA-2023:7785
AlmaLinux 9 postgresql +14 15.5-1.module_el9.3.0+52+21733919 ALSA-2023:7785
AlmaLinux 8 pg_repack 1.4.8-1.module_el8.8.0+3487+43ec1b9f ALSA-2023:7884
AlmaLinux 8 pgaudit 1.7.0-1.module_el8.8.0+3487+43ec1b9f ALSA-2023:7884
AlmaLinux 8 postgres-decoderbufs 1.9.7-1.Final.module_el8.8.0+3487+43ec1b9f ALSA-2023:7884
AlmaLinux 8 postgresql +14 15.5-1.module_el8.9.0+3706+885c732e ALSA-2023:7884

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 pgaudit 1.7.0-1.module+el9.5.0+30637+4391fcca RLSA-2023:7785
Rocky Linux 9 postgres-decoderbufs 1.9.7-1.Final.module+el9.5.0+30637+4391fcca RLSA-2023:7785
Rocky Linux 8 pg_repack 1.4.8-1.module+el8.9.0+1525+fc91df60 RLSA-2023:7884
Rocky Linux 8 pgaudit 1.7.0-1.module+el8.9.0+1525+fc91df60 RLSA-2023:7884
Rocky Linux 8 postgres-decoderbufs 1.9.7-1.Final.module+el8.9.0+1525+fc91df60 RLSA-2023:7884
ReleasePackageFixed inAdvisory
SLES 15 SP5 postgresql15 15.4-150200.5.12.1 SUSE-SU-2023:3347-1
SLES 15 SP4 postgresql15 15.4-150200.5.12.1 SUSE-SU-2023:3347-1
SLES 12 SP5 postgresql15 15.4-3.12.1 SUSE-SU-2023:3342-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 postgresql15 15.4-3.12.1 SUSE-SU-2023:3342-1
SUSE Manager Server 4.2 postgresql15 15.4-150200.5.12.1 SUSE-SU-2023:3347-1
SUSE Manager Proxy 4.2 postgresql15 15.4-150200.5.12.1 SUSE-SU-2023:3347-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed postgresql15 15.4-1.1 openSUSE-SU-2024:13134-1
openSUSE Leap 15.5 postgresql15 15.4-150200.5.12.1 SUSE-SU-2023:3347-1
openSUSE Leap 15.4 postgresql15 15.4-150200.5.12.1 SUSE-SU-2023:3347-1
ReleasePackageFixed inAdvisory
Alpine v3.22 postgresql15 15.4-r0 —
Alpine v3.21 postgresql15 15.4-r0 —
Alpine v3.20 postgresql14 14.9-r0 —
Alpine v3.20 postgresql15 15.4-r0 —
Alpine v3.19 postgresql13 13.12-r0 —
Alpine v3.19 postgresql14 14.9-r0 —
Alpine v3.19 postgresql15 15.4-r0 —
Alpine v3.18 postgresql12 12.16-r0 —
Alpine v3.18 postgresql13 13.12-r0 —
Alpine v3.18 postgresql14 14.9-r0 —
Alpine v3.18 postgresql15 15.4-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.17 postgresql12 12.16-r0 —
Alpine v3.17 postgresql13 13.12-r0 —
Alpine v3.17 postgresql14 14.9-r0 —
Alpine v3.17 postgresql15 15.4-r0 —
Alpine v3.16 postgresql12 12.16-r0 —
Alpine v3.16 postgresql13 13.12-r0 —
Alpine v3.16 postgresql14 14.9-r0 —
Alpine v3.15 postgresql12 12.16-r0 —
Alpine v3.15 postgresql13 13.12-r0 —
Alpine v3.15 postgresql14 14.9-r0 —
Alpine v3.14 postgresql 13.12-r0 —
Alpine v3.13 postgresql 13.12-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 postgresql15 +15 15.4-1.amzn2023.0.1 ALAS2023-2023-387

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 pg_repack 1.4.8-1.module+el9.2.0+21134+ceb95ed9 ELSA-2023-7785
Oracle Linux 9 pgaudit 1.7.0-1.module+el9.2.0+21134+ceb95ed9 ELSA-2023-7785
Oracle Linux 9 postgres-decoderbufs 1.9.7-1.Final.module+el9.2.0+21134+ceb95ed9 ELSA-2023-7785
Oracle Linux 9 postgresql +14 15.5-1.module+el9.3.0+90103+1d024772 ELSA-2023-7785
Oracle Linux 8 pg_repack 1.4.8-1.module+el8.9.0+90110+d8a562d5 ELSA-2023-7884
Oracle Linux 8 pgaudit 1.7.0-1.module+el8.9.0+90110+d8a562d5 ELSA-2023-7884
Oracle Linux 8 postgres-decoderbufs 1.9.7-1.Final.module+el8.9.0+90110+d8a562d5 ELSA-2023-7884
Oracle Linux 8 postgresql +14 15.5-1.module+el8.9.0+90110+d8a562d5 ELSA-2023-7884

Advisories 18

References