CVE-2023-39418
published low CVSS 3.1 · 3.1Postgresql: merge fails to enforce update or select row security policies
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | 8 | postgresql:158090020231114113548.a75119d5 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | postgresql:15Red Hat Enterprise Linux 8.8 Extended Update Support · 8080020231113134015.63b34585 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat Enterprise Linux | 9 | postgresql:159030020231120082734.rhel9 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | postgresql:15Red Hat Enterprise Linux 9.2 Extended Update Support · 9020020231115020618.rhel9 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-387 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | postgresql | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| Alpine Linux | v3.13 | postgresql | Fixed | 13.12-r0 | Package fix record |
| Oracle Linux | 8 | postgresqlaarch64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
Show 104 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | 6, 7, 9 | postgresql | Unaffected | Not required | redhat |
| Red Hat Enterprise Linux | 8 | postgresql:10/postgresql | Unaffected | Not required | redhat |
| Red Hat Enterprise Linux | 8 | postgresql:12/postgresql | Unaffected | Not required | redhat |
| Red Hat Enterprise Linux | 8 | postgresql:13/postgresql | Unaffected | Not required | redhat |
| Red Hat | — | rh-postgresql10-postgresqlRed Hat Software Collections | Unaffected | Not required | redhat |
| Red Hat | — | rh-postgresql12-postgresqlRed Hat Software Collections | Unaffected | Not required | redhat |
| Red Hat | — | rh-postgresql13-postgresqlRed Hat Software Collections | Unaffected | Not required | redhat |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlaarch64 | Advisory build | 15.5-1.module+el8.8.0+20658+5fb3eedd | RHSA-2023:7883 |
| Debian | bookworm | postgresql-15 | Advisory build | 15.5-0+deb12u1 | DSA-5553-1 |
| AlmaLinux | 9 | postgresql | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| Alpine Linux | v3.14 | postgresql | Fixed | 13.12-r0 | Package fix record |
| Oracle Linux | 8 | postgresqlx86_64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 9 | postgresqlaarch64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el9.3.0+90103+1d024772 | ELSA-2023-7785 |
| Oracle Linux | 9 | postgresqlx86_64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el9.3.0+90103+1d024772 | ELSA-2023-7785 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlaarch64 | Advisory build | 15.5-1.module+el8.9.0+20663+03952ce4 | RHSA-2023:7884 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlppc64le | Advisory build | 15.5-1.module+el8.8.0+20658+5fb3eedd | RHSA-2023:7883 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlppc64le | Advisory build | 15.5-1.module+el8.9.0+20663+03952ce4 | RHSA-2023:7884 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqls390x | Advisory build | 15.5-1.module+el8.8.0+20658+5fb3eedd | RHSA-2023:7883 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqls390x | Advisory build | 15.5-1.module+el8.9.0+20663+03952ce4 | RHSA-2023:7884 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlsrc | Advisory build | 15.5-1.module+el8.8.0+20658+5fb3eedd | RHSA-2023:7883 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlsrc | Advisory build | 15.5-1.module+el8.9.0+20663+03952ce4 | RHSA-2023:7884 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlx86_64 | Advisory build | 15.5-1.module+el8.8.0+20658+5fb3eedd | RHSA-2023:7883 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlx86_64 | Advisory build | 15.5-1.module+el8.9.0+20663+03952ce4 | RHSA-2023:7884 |
| Red Hat Enterprise Linux | RHEL-9 | postgresqlaarch64 | Advisory build | 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 | RHSA-2023:7785 |
| Red Hat Enterprise Linux | RHEL-9 | postgresqlaarch64 | Advisory build | 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 | RHSA-2023:7885 |
| Red Hat Enterprise Linux | RHEL-9 | postgresqlppc64le | Advisory build | 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 | RHSA-2023:7785 |
| Red Hat Enterprise Linux | RHEL-9 | postgresqlppc64le | Advisory build | 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 | RHSA-2023:7885 |
| Red Hat Enterprise Linux | RHEL-9 | postgresqls390x | Advisory build | 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 | RHSA-2023:7785 |
| Red Hat Enterprise Linux | RHEL-9 | postgresqls390x | Advisory build | 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 | RHSA-2023:7885 |
| Red Hat Enterprise Linux | RHEL-9 | postgresqlsrc | Advisory build | 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 | RHSA-2023:7785 |
| Red Hat Enterprise Linux | RHEL-9 | postgresqlsrc | Advisory build | 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 | RHSA-2023:7885 |
| Red Hat Enterprise Linux | RHEL-9 | postgresqlx86_64 | Advisory build | 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 | RHSA-2023:7785 |
| Red Hat Enterprise Linux | RHEL-9 | postgresqlx86_64 | Advisory build | 15.5-1.module+el9.2.0.z+20667+a2d2a8a9 | RHSA-2023:7885 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.8-1.module_el8.8.0+3487+43ec1b9f | ALSA-2023:7884 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.7.0-1.module_el8.8.0+3487+43ec1b9f | ALSA-2023:7884 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el8.8.0+3487+43ec1b9f | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-private-devel | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-private-libs | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 15.5-1.module_el8.9.0+3706+885c732e | ALSA-2023:7884 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.4.8-1.module_el9.2.0+22+09653793 | ALSA-2023:7785 |
| AlmaLinux | 9 | pgaudit | Advisory build | 1.7.0-1.module_el9.2.0+22+09653793 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el9.2.0+22+09653793 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-plpython3 | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-pltcl | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-private-devel | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-private-libs | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-server | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-server-devel | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-static | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-test | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-test-rpm-macros | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-upgrade | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| AlmaLinux | 9 | postgresql-upgrade-devel | Advisory build | 15.5-1.module_el9.3.0+52+21733919 | ALSA-2023:7785 |
| Alpine Linux | v3.15 | postgresql12 | Fixed | 12.16-r0 | Package fix record |
| Alpine Linux | v3.15 | postgresql13 | Fixed | 13.12-r0 | Package fix record |
| Alpine Linux | v3.15 | postgresql14 | Fixed | 14.9-r0 | Package fix record |
| Alpine Linux | v3.16 | postgresql12 | Fixed | 12.16-r0 | Package fix record |
| Alpine Linux | v3.16 | postgresql13 | Fixed | 13.12-r0 | Package fix record |
| Alpine Linux | v3.16 | postgresql14 | Fixed | 14.9-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql12 | Fixed | 12.16-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql13 | Fixed | 13.12-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql14 | Fixed | 14.9-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql15 | Fixed | 15.4-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql12 | Fixed | 12.16-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql13 | Fixed | 13.12-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql14 | Fixed | 14.9-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql15 | Fixed | 15.4-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql13 | Fixed | 13.12-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql14 | Fixed | 14.9-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql15 | Fixed | 15.4-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql14 | Fixed | 14.9-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql15 | Fixed | 15.4-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql15 | Fixed | 15.4-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql15 | Fixed | 15.4-r0 | Package fix record |
| Oracle Linux | 8 | pg_repackaarch64 · postgresql · 15b | Advisory build | 0:1.4.8-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | pg_repackx86_64 · postgresql · 15b | Advisory build | 0:1.4.8-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | pgauditaarch64 · postgresql · 15b | Advisory build | 0:1.7.0-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | pgauditx86_64 · postgresql · 15b | Advisory build | 0:1.7.0-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgres-decoderbufsaarch64 · postgresql · 15b | Advisory build | 0:1.9.7-1.Final.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgres-decoderbufsx86_64 · postgresql · 15b | Advisory build | 0:1.9.7-1.Final.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgresql-contribaarch64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgresql-contribx86_64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgresql-docsaarch64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgresql-docsx86_64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgresql-plperlaarch64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgresql-plperlx86_64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgresql-plpython3aarch64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgresql-plpython3x86_64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgresql-pltclaarch64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
| Oracle Linux | 8 | postgresql-pltclx86_64 · postgresql · 15b | Advisory build | 0:15.5-1.module+el8.9.0+90110+d8a562d5 | ELSA-2023-7884 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.1 / 10
- Severity
- low
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | 8090020231114113548.a75119d5 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | 8080020231113134015.63b34585 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | 9030020231120082734.rhel9 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support | 9020020231115020618.rhel9 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 6 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Software Collections | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Software Collections | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Software Collections | Default: unaffected | redhat · cna |
Weaknesses
1- CWE-1220 Insufficient Granularity of Access Control
References
10- RHSA-2023:7785 https://access.redhat.com/errata/RHSA-2023:7785
- RHSA-2023:7883 https://access.redhat.com/errata/RHSA-2023:7883
- RHSA-2023:7884 https://access.redhat.com/errata/RHSA-2023:7884
- RHSA-2023:7885 https://access.redhat.com/errata/RHSA-2023:7885
- https://access.redhat.com/security/cve/CVE-2023-39418
- RHBZ#2228112 https://bugzilla.redhat.com/show_bug.cgi?id=2228112
- https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229
- https://security.netapp.com/advisory/ntap-20230915-0002/
- https://www.debian.org/security/2023/dsa-5553
- https://www.postgresql.org/support/security/CVE-2023-39418/
Provider assertions
3redhat · cna
Postgresql: merge fails to enforce update or select row security policies
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c8be2c4d52bf927d0b934183e9e7e1478fce8968f7166f2a0d78729775bbddfe
- Ingested
- 27 Nov 2026, 02:44:12 UTC
- Source record
- Official CVE record