CVE-2023-39418
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql15-server | Amazon Linux | 15.4-1.amzn2023.0.1 |
| postgresql15-server-devel | Amazon Linux | 15.4-1.amzn2023.0.1 |
| postgresql15-plperl | Amazon Linux | 15.4-1.amzn2023.0.1 |
| postgresql15-private-devel | Amazon Linux | 15.4-1.amzn2023.0.1 |
| postgresql15-test | Amazon Linux | 15.4-1.amzn2023.0.1 |
| postgresql | Alpine | 13.12-r0 |
| postgresql15 | Amazon Linux | 15.4-1.amzn2023.0.1 |
| postgresql15-upgrade | Amazon Linux | 15.4-1.amzn2023.0.1 |
| postgresql15-pltcl | Amazon Linux | 15.4-1.amzn2023.0.1 |
| postgresql | Bitnami | 15.4.0 |
| postgresql15-docs | Amazon Linux | 15.4-1.amzn2023.0.1 |
| postgresql15 | Alpine | 15.4-r0 |
12 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | 8090020231114113548.a75119d5 |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | 8080020231113134015.63b34585 |
| Red Hat | Red Hat Enterprise Linux 9 | 9030020231120082734.rhel9 |
| Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support | 9020020231115020618.rhel9 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Software Collections | |
| Red Hat | Red Hat Software Collections | |
| Red Hat | Red Hat Software Collections | |
| amazon:2023 | postgresql15-server | 0 |
| amazon:2023 | postgresql15-server-devel | 0 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 9 | 9030020231120082734.rhel9 |
| amazon:2023 | postgresql15-plperl | 0 |
| amazon:2023 | postgresql15-private-devel | 0 |
| amazon:2023 | postgresql15-test | 0 |
…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
- RHSA-2023:7785 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7883 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7884 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7885 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2228112 issue-trackingx_refsource_REDHAT
- https://security.netapp.com/advisory/ntap-20230915-0002/ url
- https://www.debian.org/security/2023/dsa-5553 url