CVE-2023-39418
MEDIUM 4.3CVSS 3.1Postgresql: merge fails to enforce update or select row security policies
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.
- Published
- 11 Aug 2023
- Last modified
- 27 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-1220
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
| CVE List | redhat | CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | postgresql | postgresqlcpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* |
>= 15.0, < 15.4 | 15.4 |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:12.0:*:*:*:*:*:*:* |
= 12.0 | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | postgresql:15cpe:/a:redhat:enterprise_linux:8::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | postgresql:15cpe:/a:redhat:rhel_eus:8.8::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | postgresql:15cpe:/a:redhat:enterprise_linux:9::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | postgresql:15cpe:/a:redhat:rhel_eus:9.2::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | postgresqlcpe:/o:redhat:rhel_els:6 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | postgresqlcpe:/o:redhat:rhel_els:7 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | postgresql:10/postgresqlcpe:/o:redhat:enterprise_linux:8 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | postgresql:12/postgresqlcpe:/o:redhat:enterprise_linux:8 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | postgresql:13/postgresqlcpe:/o:redhat:enterprise_linux:8 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | postgresqlcpe:/o:redhat:enterprise_linux:9 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rh-postgresql10-postgresqlcpe:/a:redhat:rhel_software_collections:3 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rh-postgresql12-postgresqlcpe:/a:redhat:rhel_software_collections:3 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rh-postgresql13-postgresqlcpe:/a:redhat:rhel_software_collections:3 |
References
- https://access.redhat.com/errata/RHSA-2023:7785 · Third Party Advisory, vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2023:7883 · Third Party Advisory, vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2023:7884 · Third Party Advisory, vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2023:7885 · Third Party Advisory, vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-39418 · Third Party Advisory, vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2228112 · Issue Tracking, Patch, Third Party Advisory, issue-tracking, x_refsource_REDHAT
- https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229 · Mailing List, Patch
- https://www.postgresql.org/support/security/CVE-2023-39418/ · Vendor Advisory
- https://security.netapp.com/advisory/ntap-20230915-0002/ · x_transferred
- https://www.debian.org/security/2023/dsa-5553 · x_transferred
History
- 27 Nov 2026 04:51 UTC · NVD: updated (other details)
- 27 Nov 2026 02:49 UTC · CVE List: first stored (published 11 Aug 2023)
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 11 Aug 2023)