CVE-2023-39418: 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.
Medium CVSS 4.3
- CVE id
- CVE-2023-39418
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| PostgreSQL Runtimes and servers |
>= 15.0, < 15.4 | 15.4 |
How to fix it
Upgrade PostgreSQL to 15.4 or later.
psql -c 'SELECT version();'
- Install the patched PostgreSQL minor release of your major version (the postgres image tag, the PGDG packages, or your provider's maintenance update) and restart the server; minor releases need no dump or pg_upgrade.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2023-39418 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-39418
- Web: https://access.redhat.com/errata/RHSA-2023:7785
- Web: https://access.redhat.com/errata/RHSA-2023:7883
- Web: https://access.redhat.com/errata/RHSA-2023:7884
- Web: https://access.redhat.com/errata/RHSA-2023:7885
- Web: https://access.redhat.com/security/cve/CVE-2023-39418
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=2228112
- Web: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229
- Web: https://www.postgresql.org/support/security/CVE-2023-39418/
- Web: https://access.redhat.com/errata/RHSA-2023:7785
- Web: https://access.redhat.com/errata/RHSA-2023:7883
- Web: https://access.redhat.com/errata/RHSA-2023:7884
- Web: https://access.redhat.com/errata/RHSA-2023:7885
- Web: https://access.redhat.com/security/cve/CVE-2023-39418
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=2228112
- Web: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229
- Web: https://security.netapp.com/advisory/ntap-20230915-0002/
- Web: https://www.debian.org/security/2023/dsa-5553
- Web: https://www.postgresql.org/support/security/CVE-2023-39418/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.