Advisory Published
CVE Published
Updated

CVE-2023-39418: Postgresql: merge fails to enforce update or select row security policies

First published: Tue Aug 01 2023(Updated: )

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.

Credit: secalert@redhat.com secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/postgresql<15.4
15.4
PostgreSQL PostgreSQL>=15.0<15.4
Redhat Enterprise Linux=8.0
Redhat Enterprise Linux=9.0
Debian Debian Linux=12.0
debian/postgresql-13
13.16-0+deb11u1
debian/postgresql-15
15.8-0+deb12u1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the vulnerability ID?

    The vulnerability ID is CVE-2023-39418.

  • What is the severity level of CVE-2023-39418?

    The severity level of CVE-2023-39418 is medium (4.3).

  • What is the affected software of CVE-2023-39418?

    The affected software of CVE-2023-39418 is PostgreSQL version 15.4 and below on Redhat Enterprise Linux 8.0 and 9.0, and PostgreSQL versions 11, 13, and 15 on Debian and Ubuntu.

  • What is the description of CVE-2023-39418?

    CVE-2023-39418 is a vulnerability in PostgreSQL that occurs when using the MERGE command, which fails to test new rows against row security policies defined for UPDATE and SELECT, potentially allowing a user to store forbidden rows.

  • Are there any references for CVE-2023-39418?

    Yes, you can find references for CVE-2023-39418 at these links: [reference 1](https://bugzilla.redhat.com/show_bug.cgi?id=2228112), [reference 2](https://access.redhat.com/security/cve/CVE-2023-39418), and [reference 3](https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cb2ae5741f2458a474ed3c31458d242e678ff229).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203