VDB

CVE-2023-39418

CVE-2023-39418 PUBLISHED CVSS 3.1 LOW

Postgresql: merge fails to enforce update or select row security policies

Reported by redhat · Published August 11, 2023

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
postgresql15-serverAmazon Linux15.4-1.amzn2023.0.1
postgresql15-server-develAmazon Linux15.4-1.amzn2023.0.1
postgresql15-plperlAmazon Linux15.4-1.amzn2023.0.1
postgresql15-private-develAmazon Linux15.4-1.amzn2023.0.1
postgresql15-testAmazon Linux15.4-1.amzn2023.0.1
postgresqlAlpine13.12-r0
postgresql15Amazon Linux15.4-1.amzn2023.0.1
postgresql15-upgradeAmazon Linux15.4-1.amzn2023.0.1
postgresql15-pltclAmazon Linux15.4-1.amzn2023.0.1
postgresqlBitnami15.4.0
postgresql15-docsAmazon Linux15.4-1.amzn2023.0.1
postgresql15Alpine15.4-r0

12 more packages have a fixed version. See every fix in Lookup.

Risk scores

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

Affected products

VendorProductVersions
Red HatRed Hat Enterprise Linux 88090020231114113548.a75119d5
Red HatRed Hat Enterprise Linux 8.8 Extended Update Support8080020231113134015.63b34585
Red HatRed Hat Enterprise Linux 99030020231120082734.rhel9
Red HatRed Hat Enterprise Linux 9.2 Extended Update Support9020020231115020618.rhel9
Red HatRed Hat Enterprise Linux 6
Red HatRed Hat Enterprise Linux 7
Red HatRed Hat Enterprise Linux 8
Red HatRed Hat Enterprise Linux 8
Red HatRed Hat Enterprise Linux 8
Red HatRed Hat Enterprise Linux 9
Red HatRed Hat Software Collections
Red HatRed Hat Software Collections
Red HatRed Hat Software Collections
amazon:2023postgresql15-server0
amazon:2023postgresql15-server-devel0
Red HatRed Hat Enterprise Linux 6
Red HatRed Hat Enterprise Linux 99030020231120082734.rhel9
amazon:2023postgresql15-plperl0
amazon:2023postgresql15-private-devel0
amazon:2023postgresql15-test0

…and 27 more

Timeline

  • Aug 10, 2023 CVE Published
  • Aug 12, 2023 EPSS Score (30 in total, the first dated here)
  • Feb 8, 2026 Distribution Patch (23 in total, the first dated here)
  • Feb 8, 2026 Security Advisory (23 in total, the first dated here)
  • Aug 5, 2026 Coalition ESS Score
  • Nov 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-39418
vulnetix vdb fixes CVE-2023-39418

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-39418/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›