CVEMETERBack to radar
OFFICIAL RECORD · PostgreSQL

CVE-2023-39418

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 4.3 · medium

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 1.086% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 4.3 · published by [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T11:59:22.105Z

CVSS 3.1 · 3.1 · published by redhat
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T12:01:24.720Z

CVSS 3.1 · 3.1 · published by [email protected]
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T11:59:22.105Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:28:52.703ZCISA KEV
cvssverified2026-11-19T11:59:22.105ZNVD
epssverified2026-11-19T16:04:36.838ZFIRST EPSS
patchesverified2026-11-19T12:52:05.592ZOSV
affectedverified2026-11-19T12:01:24.720ZCVE Program
lifecycleverified2026-11-19T12:01:24.720ZCVE Program

Affected versions and configuration

Red Hat Red Hat Enterprise Linux 8; default status: affected: 8090020231114113548.a75119d5 to < * [unaffected; scheme: rpm] Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support; default status: affected: 8080020231113134015.63b34585 to < * [unaffected; scheme: rpm] Red Hat Red Hat Enterprise Linux 9; default status: affected: 9030020231120082734.rhel9 to < * [unaffected; scheme: rpm] Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support; default status: affected: 9020020231115020618.rhel9 to < * [unaffected; scheme: rpm] Red Hat Red Hat Enterprise Linux 6; default status: unaffected: Red Hat Red Hat Enterprise Linux 7; default status: unaffected: Red Hat Red Hat Enterprise Linux 8; default status: unaffected: Red Hat Red Hat Enterprise Linux 8; default status: unaffected: Red Hat Red Hat Enterprise Linux 8; default status: unaffected: Red Hat Red Hat Enterprise Linux 9; default status: unaffected: Red Hat Red Hat Software Collections; default status: unaffected: Red Hat Red Hat Software Collections; default status: unaffected: Red Hat Red Hat Software Collections; default status: unaffected:

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

OSV · osv · full conditions
{
  "id": "DEBIAN-CVE-2023-39418",
  "aliases": [],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "15.5-0+deb12u1"
            }
          ]
        }
      ],
      "package": {
        "name": "postgresql-15",
        "purl": "pkg:deb/debian/postgresql-15?arch=source&distro=bookworm",
        "ecosystem": "Debian:12"
      },
      "versions": [
        "15.3-0+deb12u1",
        "15.3-1",
        "15.4-0+deb12u1",
        "15.4-1",
        "15.4-2",
        "15.4-3"
      ],
      "database_specific": {
        "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-39418.json"
      },
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
    }
  ],
  "upstream": [
    "CVE-2023-39418"
  ],
  "withdrawn": null,
  "references": [
    {
      "url": "https://security-tracker.debian.org/tracker/CVE-2023-39418",
      "type": "ADVISORY"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {}
}
Archived source JSON
CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "cpes": [
        "cpe:/a:redhat:enterprise_linux:8::appstream"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Enterprise Linux 8",
      "versions": [
        {
          "status": "unaffected",
          "version": "8090020231114113548.a75119d5",
          "lessThan": "*",
          "versionType": "rpm"
        }
      ],
      "packageName": "postgresql:15",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "affected"
    },
    {
      "cpes": [
        "cpe:/a:redhat:rhel_eus:8.8::appstream"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Enterprise Linux 8.8 Extended Update Support",
      "versions": [
        {
          "status": "unaffected",
          "version": "8080020231113134015.63b34585",
          "lessThan": "*",
          "versionType": "rpm"
        }
      ],
      "packageName": "postgresql:15",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "affected"
    },
    {
      "cpes": [
        "cpe:/a:redhat:enterprise_linux:9::appstream"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Enterprise Linux 9",
      "versions": [
        {
          "status": "unaffected",
          "version": "9030020231120082734.rhel9",
          "lessThan": "*",
          "versionType": "rpm"
        }
      ],
      "packageName": "postgresql:15",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "affected"
    },
    {
      "cpes": [
        "cpe:/a:redhat:rhel_eus:9.2::appstream"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Enterprise Linux 9.2 Extended Update Support",
      "versions": [
        {
          "status": "unaffected",
          "version": "9020020231115020618.rhel9",
          "lessThan": "*",
          "versionType": "rpm"
        }
      ],
      "packageName": "postgresql:15",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "affected"
    },
    {
      "cpes": [
        "cpe:/o:redhat:rhel_els:6"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Enterprise Linux 6",
      "versions": [],
      "packageName": "postgresql",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "unaffected"
    },
    {
      "cpes": [
        "cpe:/o:redhat:rhel_els:7"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Enterprise Linux 7",
      "versions": [],
      "packageName": "postgresql",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "unaffected"
    },
    {
      "cpes": [
        "cpe:/a:redhat:enterprise_linux:8"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Enterprise Linux 8",
      "versions": [],
      "packageName": "postgresql:10/postgresql",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "unaffected"
    },
    {
      "cpes": [
        "cpe:/a:redhat:enterprise_linux:8"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Enterprise Linux 8",
      "versions": [],
      "packageName": "postgresql:12/postgresql",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "unaffected"
    },
    {
      "cpes": [
        "cpe:/a:redhat:enterprise_linux:8"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Enterprise Linux 8",
      "versions": [],
      "packageName": "postgresql:13/postgresql",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "unaffected"
    },
    {
      "cpes": [
        "cpe:/a:redhat:enterprise_linux:9"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Enterprise Linux 9",
      "versions": [],
      "packageName": "postgresql",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "unaffected"
    },
    {
      "cpes": [
        "cpe:/a:redhat:rhel_software_collections:3"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Software Collections",
      "versions": [],
      "packageName": "rh-postgresql10-postgresql",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "unaffected"
    },
    {
      "cpes": [
        "cpe:/a:redhat:rhel_software_collections:3"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Software Collections",
      "versions": [],
      "packageName": "rh-postgresql12-postgresql",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "unaffected"
    },
    {
      "cpes": [
        "cpe:/a:redhat:rhel_software_collections:3"
      ],
      "vendor": "Red Hat",
      "product": "Red Hat Software Collections",
      "versions": [],
      "packageName": "rh-postgresql13-postgresql",
      "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
      "defaultStatus": "unaffected"
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://access.redhat.com/errata/RHSA-2023:7785",
          "name": "RHSA-2023:7785",
          "tags": [
            "vendor-advisory",
            "x_refsource_REDHAT",
            "x_transferred"
          ]
        },
        {
          "url": "https://access.redhat.com/errata/RHSA-2023:7883",
          "name": "RHSA-2023:7883",
          "tags": [
            "vendor-advisory",
            "x_refsource_REDHAT",
            "x_transferred"
          ]
        },
        {
          "url": "https://access.redhat.com/errata/RHSA-2023:7884",
          "name": "RHSA-2023:7884",
          "tags": [
            "vendor-advisory",
            "x_refsource_REDHAT",
            "x_transferred"
          ]
        },
        {
          "url": "https://access.redhat.com/errata/RHSA-2023:7885",
          "name": "RHSA-2023:7885",
          "tags": [
            "vendor-advisory",
            "x_refsource_REDHAT",
            "x_transferred"
          ]
        },
        {
          "url": "https://access.redhat.com/security/cve/CVE-2023-39418",
          "tags": [
            "vdb-entry",
            "x_refsource_REDHAT",
            "x_transferred"
          ]
        },
        {
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2228112",
          "name": "RHBZ#2228112",
          "tags": [
            "issue-tracking",
            "x_refsource_REDHAT",
            "x_transferred"
          ]
        },
        {
          "url": "https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://security.netapp.com/advisory/ntap-20230915-0002/",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://www.debian.org/security/2023/dsa-5553",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://www.postgresql.org/support/security/CVE-2023-39418/",
          "tags": [
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-02T18:10:20.651Z"
      }
    },
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2023-39418",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2023-12-19T19:31:10.818251Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2024-12-03T15:04:13.937Z"
      }
    }
  ]
}
Archived source JSON
NVD · nvd-cpe · full conditions
[
  {
    "nodes": [
      {
        "negate": false,
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "3263C456-8C2D-4069-AE64-8B55212B45DD",
            "versionEndExcluding": "15.4",
            "versionStartIncluding": "15.0"
          }
        ],
        "operator": "OR"
      }
    ]
  },
  {
    "nodes": [
      {
        "negate": false,
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "F4CFF558-3C47-480D-A2F0-BABF26042943"
          },
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "7F6FB57C-2BC7-487C-96DD-132683AEB35D"
          }
        ],
        "operator": "OR"
      }
    ]
  },
  {
    "nodes": [
      {
        "negate": false,
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:debian:debian_linux:12.0:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "46D69DCC-AE4D-4EA5-861C-D60951444C6C"
          }
        ],
        "operator": "OR"
      }
    ]
  }
]
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryDebian:12 / 12postgresql-15unknown15.5-0+deb12u1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history