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 package | Versions | Reported by |
|---|---|---|
| postgresql:15 | Not specified Not affected: from 8090020231114113548.a75119d5 before *, from 8080020231113134015.63b34585 before *, from 9030020231120082734.rhel9 before *, from 9020020231115020618.rhel9 before * | CVE List |
| postgresql | Not specified | CVE List |
| postgresql:10/postgresql | Not specified | CVE List |
| postgresql:12/postgresql | Not specified | CVE List |
| postgresql:13/postgresql | Not specified | CVE List |
| rh-postgresql10-postgresql | Not specified | CVE List |
| rh-postgresql12-postgresql | Not specified | CVE List |
| rh-postgresql13-postgresql | Not specified | CVE List |
| postgresql postgresql | from 15.0 before 15.4 | NVD |
| redhat enterprise_linux | 8.0, 9.0 | NVD |
| debian debian_linux | 12.0 | NVD |
| postgresql (Bitnami) | from 15.0.0 before 15.4.0 | Bitnami Vulnerability Database |
All scores
| redhat | 3.1low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
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:7785 | advisory, third-party-advisory, vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2023:7883 | advisory, third-party-advisory, vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2023:7884 | advisory, third-party-advisory, vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2023:7885 | advisory, third-party-advisory, vendor-advisory | |
| https://access.redhat.com/security/cve/CVE-2023-39418 | advisory, third-party-advisory, vdb-entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2228112 | advisory, issue-tracking, patch, third-party-advisory | |
| https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229 | fix, 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-5553 | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-39418 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-39418 changed 2026-11-07 | CVE Terms of Use |
| NVD | CVE-2023-39418 changed 2026-11-27 | Public domain |
| Bitnami Vulnerability Database | BIT-POSTGRESQL-2023-39418 changed 2026-09-08 | Apache-2.0 |