{"api_version":"1","generated_at":"2026-04-23T01:14:58+00:00","cve":"CVE-2023-39418","urls":{"html":"https://cve.report/CVE-2023-39418","api":"https://cve.report/api/cve/CVE-2023-39418.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-39418","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-39418"},"summary":{"title":"CVE-2023-39418","description":"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.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2023-08-11 13:15:00","updated_at":"2023-11-14 14:15:00"},"problem_types":["NVD-CWE-noinfo"],"metrics":[],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2023-39418","name":"https://access.redhat.com/security/cve/CVE-2023-39418","refsource":"MISC","tags":[],"title":"cve-details","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.postgresql.org/support/security/CVE-2023-39418/","name":"https://www.postgresql.org/support/security/CVE-2023-39418/","refsource":"MISC","tags":[],"title":"PostgreSQL: CVE-2023-39418: MERGE fails to enforce UPDATE or SELECT row security policies","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229","name":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229","refsource":"MISC","tags":[],"title":"git.postgresql.org Git - postgresql.git/commitdiff","mime":"text/xml","httpstatus":"200","archivestatus":"0"},{"url":"https://security.netapp.com/advisory/ntap-20230915-0002/","name":"https://security.netapp.com/advisory/ntap-20230915-0002/","refsource":"MISC","tags":[],"title":"August 2023 PostgreSQL Vulnerabilities in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.debian.org/security/2023/dsa-5553","name":"https://www.debian.org/security/2023/dsa-5553","refsource":"","tags":[],"title":"Debian -- Security Information -- DSA-5553-1 postgresql-15","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2228112","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2228112","refsource":"MISC","tags":[],"title":"2228112 – (CVE-2023-39418) CVE-2023-39418 postgresql: MERGE fails to enforce UPDATE or SELECT row security policies","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-39418","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39418","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"39418","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"39418","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"39418","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-39418","qid":"161232","title":"Oracle Enterprise Linux Security Update for postgresql:15 (ELSA-2023-7785)"},{"cve":"CVE-2023-39418","qid":"161253","title":"Oracle Enterprise Linux Security Update for postgresql:15 (ELSA-2023-7884)"},{"cve":"CVE-2023-39418","qid":"199665","title":"Ubuntu Security Notification for PostgreSQL Vulnerabilities (USN-6296-1)"},{"cve":"CVE-2023-39418","qid":"242614","title":"Red Hat Update for postgresql:15 (RHSA-2023:7785)"},{"cve":"CVE-2023-39418","qid":"242634","title":"Red Hat Update for postgresql:15 (RHSA-2023:7885)"},{"cve":"CVE-2023-39418","qid":"242636","title":"Red Hat Update for postgresql:15 (RHSA-2023:7883)"},{"cve":"CVE-2023-39418","qid":"242657","title":"Red Hat Update for postgresql:15 (RHSA-2023:7884)"},{"cve":"CVE-2023-39418","qid":"356538","title":"Amazon Linux Security Advisory for postgresql15 : ALAS2023-2023-387"},{"cve":"CVE-2023-39418","qid":"503280","title":"Alpine Linux Security Update for postgresql"},{"cve":"CVE-2023-39418","qid":"503281","title":"Alpine Linux Security Update for postgresql13"},{"cve":"CVE-2023-39418","qid":"503282","title":"Alpine Linux Security Update for postgresql14"},{"cve":"CVE-2023-39418","qid":"503283","title":"Alpine Linux Security Update for postgresql12"},{"cve":"CVE-2023-39418","qid":"503284","title":"Alpine Linux Security Update for postgresql15"},{"cve":"CVE-2023-39418","qid":"505920","title":"Alpine Linux Security Update for postgresql15"},{"cve":"CVE-2023-39418","qid":"506163","title":"Alpine Linux Security Update for postgresql13"},{"cve":"CVE-2023-39418","qid":"506165","title":"Alpine Linux Security Update for postgresql14"},{"cve":"CVE-2023-39418","qid":"6000322","title":"Debian Security Update for postgresql-15 (DSA 5553-1)"},{"cve":"CVE-2023-39418","qid":"691229","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for postgresql (59a43a73-3786-11ee-94b4-6cc21735f730)"},{"cve":"CVE-2023-39418","qid":"754278","title":"SUSE Enterprise Linux Security Update for postgresql15 (SUSE-SU-2023:3342-1)"},{"cve":"CVE-2023-39418","qid":"941510","title":"AlmaLinux Security Update for postgresql:15 (ALSA-2023:7785)"},{"cve":"CVE-2023-39418","qid":"941512","title":"AlmaLinux Security Update for postgresql:15 (ALSA-2023:7884)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-39418","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"postgresql","version":{"version_data":[{"version_value":"not down converted","x_cve_json_5_version_data":{"versions":[{"version":"15.4","status":"unaffected"}]}}]}}]}},{"vendor_name":"Red Hat","product":{"product_data":[{"product_name":"Red Hat Enterprise Linux 6","version":{"version_data":[{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"unaffected"}}]}},{"product_name":"Red Hat Enterprise Linux 7","version":{"version_data":[{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"unaffected"}}]}},{"product_name":"Red Hat Enterprise Linux 8","version":{"version_data":[{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"unaffected"}},{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"unaffected"}},{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"unaffected"}},{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"affected"}}]}},{"product_name":"Red Hat Enterprise Linux 9","version":{"version_data":[{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"unaffected"}},{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"affected"}}]}},{"product_name":"Red Hat Software Collections","version":{"version_data":[{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"unaffected"}},{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"unaffected"}},{"version_value":"not down converted","x_cve_json_5_version_data":{"defaultStatus":"unaffected"}}]}}]}}]}},"references":{"reference_data":[{"url":"https://access.redhat.com/security/cve/CVE-2023-39418","refsource":"MISC","name":"https://access.redhat.com/security/cve/CVE-2023-39418"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2228112","refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2228112"},{"url":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229","refsource":"MISC","name":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229"},{"url":"https://www.postgresql.org/support/security/CVE-2023-39418/","refsource":"MISC","name":"https://www.postgresql.org/support/security/CVE-2023-39418/"},{"url":"https://security.netapp.com/advisory/ntap-20230915-0002/","refsource":"MISC","name":"https://security.netapp.com/advisory/ntap-20230915-0002/"}]},"impact":{"cvss":[{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.1,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2023-08-11 13:15:00","lastModifiedDate":"2023-11-14 14:15:00","problem_types":["NVD-CWE-noinfo"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":4.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":1.4}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"15.0","versionEndExcluding":"15.4","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}