CVE-2023-39418
Postgresql: 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.
Fixes and workarounds
No remediation reported in collected sources.
Missing remediation information is not evidence that no patch exists.
Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| Red Hat Enterprise Linux 8 Red Hat postgresql:15
https://access.redhat.com/downloads/content/package-browser/ |
≥ 8090020231114113548.a75119d5; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.8 Extended Update Support Red Hat postgresql:15
https://access.redhat.com/downloads/content/package-browser/ |
≥ 8080020231113134015.63b34585; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat postgresql:15
https://access.redhat.com/downloads/content/package-browser/ |
≥ 9030020231120082734.rhel9; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9.2 Extended Update Support Red Hat postgresql:15
https://access.redhat.com/downloads/content/package-browser/ |
≥ 9020020231115020618.rhel9; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 6 Red Hat postgresql
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 7 Red Hat postgresql
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat postgresql:10/postgresql
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat postgresql:12/postgresql
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat postgresql:13/postgresql
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat postgresql
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Software Collections Red Hat rh-postgresql10-postgresql
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Software Collections Red Hat rh-postgresql12-postgresql
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Software Collections Red Hat rh-postgresql13-postgresql
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 3.1 low |
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N | CNA: redhat |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://access.redhat.com/errata/RHSA-2023:7785CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2023:7883CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2023:7884CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2023:7885CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-39418CNA: redhat · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2228112CNA: redhat · issue-tracking, x_refsource_REDHAT
- https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229CNA: redhat
- https://www.postgresql.org/support/security/CVE-2023-39418/CNA: redhat
- https://access.redhat.com/errata/RHSA-2023:7785ADP: CVE · vendor-advisory, x_refsource_REDHAT, x_transferred
- https://access.redhat.com/errata/RHSA-2023:7883ADP: CVE · vendor-advisory, x_refsource_REDHAT, x_transferred
- https://access.redhat.com/errata/RHSA-2023:7884ADP: CVE · vendor-advisory, x_refsource_REDHAT, x_transferred
- https://access.redhat.com/errata/RHSA-2023:7885ADP: CVE · vendor-advisory, x_refsource_REDHAT, x_transferred
- https://access.redhat.com/security/cve/CVE-2023-39418ADP: CVE · vdb-entry, x_refsource_REDHAT, x_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=2228112ADP: CVE · issue-tracking, x_refsource_REDHAT, x_transferred
- https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229ADP: CVE · x_transferred
- https://security.netapp.com/advisory/ntap-20230915-0002/ADP: CVE · x_transferred
- https://www.debian.org/security/2023/dsa-5553ADP: CVE · x_transferred
- https://www.postgresql.org/support/security/CVE-2023-39418/ADP: CVE · x_transferred
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.