CVE & CISA-KEV Catalog

CVE-2023-39418

LOW
3.1
CVSS v3
NVD

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.

How to fix

Remediation Available
postgresql15Amazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-contribAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-contrib-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-debugsourceAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-docsAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-docs-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-llvmjitAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-llvmjit-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-plperlAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-plperl-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-plpython3Amazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-plpython3-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-pltclAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-pltcl-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-private-develAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-private-libsAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-private-libs-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-serverAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-server-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-server-develAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-server-devel-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-staticAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-testAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-test-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-test-rpm-macrosAmazon
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-upgradeAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-upgrade-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-upgrade-develAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1
postgresql15-upgrade-devel-debuginfoAmazon
Fixed in:0:15.4-1.amzn2023.0.1
Fixed in:0:15.4-1.amzn2023.0.1

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

Exploit Intelligence

1.08%probability of exploitation in 30 days
63rdpercentile

Moderate risk: more likely to be exploited than 63% of all known CVEs.

References

Related Vulnerabilities

Other CWE-1220 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-31201Critical9.814%KEVFix
CVE-2026-33825High7.86.7%KEV + RansomFix
CVE-2024-42365High7.44.7%-Fix
CVE-2026-39363High7.53.4%-Fix
CVE-2023-43040Medium6.52.5%-Fix
CVE-2025-4404Critical9.12.0%-Fix

Common questions

How do I fix CVE-2023-39418?

Published advisories record a fix for 111 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2023-39418 being actively exploited?

Not that we know of. CVE-2023-39418 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.1% is the estimated probability that it will be exploited in the next 30 days. That is higher than 63% of all scored CVEs.

How severe is CVE-2023-39418?

CVE-2023-39418 has a CVSS v3 base score of 3.1, rated low. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2023-39418 affect?

Published advisories record a fix for postgresql15 (Amazon), postgresql15-contrib (Amazon), postgresql15-contrib-debuginfo (Amazon), postgresql15-debuginfo (Amazon), and 107 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2023-39418
CVE-2023-39418 severity badge

Markdown

[![CVE-2023-39418](https://tridentstack.com/cve/badge/CVE-2023-39418.svg)](https://tridentstack.com/cve/CVE-2023-39418)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-39418"><img src="https://tridentstack.com/cve/badge/CVE-2023-39418.svg" alt="CVE-2023-39418"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.