CVE-2023-39418
JSON

3.1low

Postgresql: merge fails to enforce update or select row security policies

Severity
3.1low CVSS:3.1 by redhat
Exploit likelihood
1.09% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
BIT-POSTGRESQL-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

Product or packageVersionsReported by
postgresql:15Not specified
Not affected: from 8090020231114113548.a75119d5 before *, from 8080020231113134015.63b34585 before *, from 9030020231120082734.rhel9 before *, from 9020020231115020618.rhel9 before *
CVE List
postgresqlNot specifiedCVE List
postgresql:10/postgresqlNot specifiedCVE List
postgresql:12/postgresqlNot specifiedCVE List
postgresql:13/postgresqlNot specifiedCVE List
rh-postgresql10-postgresqlNot specifiedCVE List
rh-postgresql12-postgresqlNot specifiedCVE List
rh-postgresql13-postgresqlNot specifiedCVE List
postgresql postgresqlfrom 15.0 before 15.4NVD
redhat enterprise_linux8.0, 9.0NVD
debian debian_linux12.0NVD
postgresql (Bitnami)from 15.0.0 before 15.4.0Bitnami Vulnerability Database

All scores

redhat3.1low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
NVD4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-1220

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Se encontró una vulnerabilidad en PostgreSQL con el uso del comando MERGE, que no puede probar nuevas filas con las políticas de seguridad de filas definidas para ACTUALIZAR y SELECCIONAR. Si las políticas ACTUALIZAR y SELECCIONAR prohíben algunas filas que las políticas INSERTAR no prohíben, un usuario podría almacenar dichas filas.

References

https://access.redhat.com/errata/RHSA-2023:7785advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2023:7883advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2023:7884advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2023:7885advisory, third-party-advisory, vendor-advisory
https://access.redhat.com/security/cve/CVE-2023-39418advisory, third-party-advisory, vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2228112advisory, issue-tracking, patch, third-party-advisory
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229fix, mailing-list, patch
https://www.postgresql.org/support/security/CVE-2023-39418/advisory, vendor-advisory
https://security.netapp.com/advisory/ntap-20230915-0002/web
https://www.debian.org/security/2023/dsa-5553web
https://nvd.nist.gov/vuln/detail/CVE-2023-39418web

Sources

SourceRecordLicence
CVE ListCVE-2023-39418 changed 2026-11-07CVE Terms of Use
NVDCVE-2023-39418 changed 2026-11-27Public domain
Bitnami Vulnerability DatabaseBIT-POSTGRESQL-2023-39418 changed 2026-09-08Apache-2.0