Original 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.
Affected software
- PostgreSQL ≥ 15.0 < 15.4 Fixed in: 15.4 exact match
Details
- Published
- 2023-08-11
- Last modified
- 2026-11-07
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N- CWE
- CWE-1220
- EPSS (30-day exploit probability)
- 1.09% (percentile 66)
References
- cve.org/CVE-2023-39418
- nvd.nist.gov/vuln/detail/CVE-2023-39418
- access.redhat.com/errata/RHSA-2023:7785
- access.redhat.com/errata/RHSA-2023:7883
- access.redhat.com/errata/RHSA-2023:7884
- access.redhat.com/errata/RHSA-2023:7885
- access.redhat.com/security/cve/CVE-2023-39418
- bugzilla.redhat.com/show_bug.cgi?id=2228112
- git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242...
- www.postgresql.org/support/security/CVE-2023-39418/
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.