CVE-2023-39418
MEDIUM4.3EPSS 0.44%Postgresql: merge fails to enforce update or select row security policies
Published: 8/11/2023Modified: 11/19/2025
Also known as:ALPINE-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.
Affected packages (6)
- Alpine/postgresqlfrom 0, < 13.12-r0
- Alpine/postgresql13from 0, < 13.12-r0
- Alpine/postgresql14from 0, < 14.9-r0
- Alpine/postgresql15from 0, < 15.4-r0
- Bitnami/postgresql>= 15.0.0, < 15.4.0
- Debian/postgresql-15from 0, < 15.5-0+deb12u1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
References (13)
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2023-39418
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-39418
- WEBhttps://access.redhat.com/errata/RHSA-2023:7785
- WEBhttps://access.redhat.com/errata/RHSA-2023:7883
- WEBhttps://access.redhat.com/errata/RHSA-2023:7884
- WEBhttps://access.redhat.com/errata/RHSA-2023:7885
- WEBhttps://access.redhat.com/security/cve/CVE-2023-39418
- WEBhttps://bugzilla.redhat.com/show_bug.cgi?id=2228112
- WEBhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2023-39418
- WEBhttps://security.netapp.com/advisory/ntap-20230915-0002/
- WEBhttps://www.debian.org/security/2023/dsa-5553
- WEBhttps://www.postgresql.org/support/security/CVE-2023-39418/