cve.bz

CVE-2023-39418

4.3 mediumEPSS 1.1%Fix available

Medium (4.3). EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.3 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 66th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2023-12-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1220 Insufficient Granularity of Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-39418 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-39418?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-39418?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-39418 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 88090020231114113548.a75119d5
Red Hat Enterprise Linux 8.8 Extended Update Support8080020231113134015.63b34585
Red Hat Enterprise Linux 99030020231120082734.rhel9
Red Hat Enterprise Linux 9.2 Extended Update Support9020020231115020618.rhel9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12postgresql-1515.5-0+deb12u1DEBIAN-CVE-2023-39418 DSA-5553-1
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el8.9.0+19797+c4ce5969RHSA-2023:7884
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el8.9.0+19797+c4ce5969RHSA-2023:7884
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969RHSA-2023:7884
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:15.5-1.module+el8.9.0+20663+03952ce4RHSA-2023:7884
Red Hatenterprise_linux:9::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el9.2.0+17405+aeb9ec60RHSA-2023:7785
Red Hatenterprise_linux:9::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el9.2.0+17405+aeb9ec60RHSA-2023:7785
Red Hatenterprise_linux:9::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:1.9.7-1.Final.module+el9.2.0+17405+aeb9ec60RHSA-2023:7785
Red Hatenterprise_linux:9::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:15.5-1.module+el9.2.0.z+20667+a2d2a8a9RHSA-2023:7785
Red Hatrhel_eus:8.8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el8.8.0+17071+aaaceaa4RHSA-2023:7883
Red Hatrhel_eus:8.8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el8.8.0+17071+aaaceaa4RHSA-2023:7883
Red Hatrhel_eus:8.8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:1.9.7-1.Final.module+el8.8.0+17071+aaaceaa4RHSA-2023:7883
Red Hatrhel_eus:8.8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:15.5-1.module+el8.8.0+20658+5fb3eeddRHSA-2023:7883
4 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Package Hub 15 SP4 and 4 morepostgresql1515.4-150200.5.12.1SUSE-SU-2023:3347-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1515.4-3.12.1SUSE-SU-2023:3342-1
openSUSELeap 15.4, Leap 15.5postgresql1515.4-150200.5.12.1SUSE-SU-2023:3347-1
openSUSETumbleweedpostgresql1515.4-1.1openSUSE-SU-2024:13134-1
AlmaLinux8pg_repack1.4.8-1.module_el8.8.0+3487+43ec1b9fALSA-2023:7884
AlmaLinux8pgaudit1.7.0-1.module_el8.8.0+3487+43ec1b9fALSA-2023:7884
AlmaLinux8postgres-decoderbufs1.9.7-1.Final.module_el8.8.0+3487+43ec1b9fALSA-2023:7884
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 12 more15.5-1.module_el8.9.0+3706+885c732eALSA-2023:7884
AlmaLinux9pg_repack1.4.8-1.module_el9.2.0+22+09653793ALSA-2023:7785
AlmaLinux9pgaudit1.7.0-1.module_el9.2.0+22+09653793ALSA-2023:7785
AlmaLinux9postgres-decoderbufs1.9.7-1.Final.module_el9.2.0+22+09653793ALSA-2023:7785
AlmaLinux9postgresql, postgresql-docs, postgresql-test and 12 more15.5-1.module_el9.3.0+52+21733919ALSA-2023:7785
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2023:7884
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1858+fcc46a79RLSA-2023:7884
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+40056+df351139RLSA-2023:7884
Rocky Linux8pg_repack0:1.4.8-1.module+el8.9.0+1525+fc91df60RLSA-2023:7884
Rocky Linux8pgaudit0:1.7.0-1.module+el8.10.0+40056+df351139RLSA-2023:7884
Rocky Linux8pgaudit0:1.7.0-1.module+el8.9.0+1525+fc91df60RLSA-2023:7884
Rocky Linux8postgres-decoderbufs0:1.9.7-1.Final.module+el8.10.0+40056+df351139RLSA-2023:7884
Rocky Linux8postgres-decoderbufs0:1.9.7-1.Final.module+el8.9.0+1525+fc91df60RLSA-2023:7884
Rocky Linux9pgaudit0:1.7.0-1.module+el9.5.0+30637+4391fccaRLSA-2023:7785
Rocky Linux9postgres-decoderbufs0:1.9.7-1.Final.module+el9.5.0+30637+4391fccaRLSA-2023:7785
Alpinev3.13, v3.14postgresql13.12-r0ALPINE-CVE-2023-39418
Alpinev3.15, v3.16, v3.17 and 1 morepostgresql1212.16-r0ALPINE-CVE-2023-39418
Alpinev3.15, v3.16, v3.17 and 2 morepostgresql1313.12-r0ALPINE-CVE-2023-39418
Alpinev3.15, v3.16, v3.17 and 3 morepostgresql1414.9-r0ALPINE-CVE-2023-39418
Alpinev3.17, v3.18, v3.19 and 3 morepostgresql1515.4-r0ALPINE-CVE-2023-39418

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability introduced with the use of MERGE Command in PostgreSQL 15 and only affects the databases that have used CREATE POLICY to define a row

security policy.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8postgresql:15-8090020231114113548.a75119d5Fixed 2023-12-20RHSA-2023:7884
Red Hat Enterprise Linux 8.8 Extended Update Supportpostgresql:15-8080020231113134015.63b34585Fixed 2023-12-20RHSA-2023:7883
Red Hat Enterprise Linux 9postgresql:15-9030020231120082734.rhel9Fixed 2023-12-13RHSA-2023:7785
Red Hat Enterprise Linux 9.2 Extended Update Supportpostgresql:15-9020020231115020618.rhel9Fixed 2023-12-20RHSA-2023:7885
Red Hat Enterprise Linux 6postgresqlNot affected
Red Hat Enterprise Linux 7postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:10/postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:12/postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:13/postgresqlNot affected
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Software Collectionsrh-postgresql10-postgresqlNot affected
Red Hat Software Collectionsrh-postgresql12-postgresqlNot affected
Red Hat Software Collectionsrh-postgresql13-postgresqlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-39418.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-15Siemens SINEC NMS2024-02-13MultipleSINEC NMSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON