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.
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 redhatCVSS: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
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T11:59:22.105Z | NVD |
| epss | verified | 2026-11-19T16:04:36.838Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:05.592Z | OSV |
| affected | verified | 2026-11-19T12:01:24.720Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:01:24.720Z | CVE 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 JSONCVE 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 JSONNVD · 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 JSONCorrection 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 type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Debian:12 / 12 | postgresql-15 | unknown | 15.5-0+deb12u1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:01:24.720ZArchived source JSON
Source publication: 2023-08-11T12:19:15.819Z
Source modification: 2026-11-07T11:56:12.771ZDocument fingerprint
80385f96fa9d24c4bbe22d4f614a8697ca8dd456bc1bb23256ee4c370769e66e - NVDConsulted: 2026-11-19T11:59:22.105ZArchived source JSON
Source publication: 2023-08-11T13:15:09.963Z
Source modification: 2026-11-07T12:17:30.650ZDocument fingerprint
5c882f6879ff506d585bf6d0a8c0540d2a18c104af820ca42cefc5bfdb044bbe - CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:52:05.592ZArchived source JSON
Source publication: 2023-08-11T13:15:09.963Z
Source modification: 2026-11-08T09:47:30.645ZDocument fingerprint
bc7377159fbe1883ea8a51101a0bcce2f458a18dc726dd446fd2fa90a886a417 - FIRST EPSSConsulted: 2026-11-19T16:04:36.838ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
752b5a4ab7063ebae6041b8a2218e2c7a480f9f66d4152a818c6a0713b1fa460
Official status history
- UNKNOWN → PUBLISHED · · evidence