Access Control Bypass Affecting postgresql package, versions [15.0,15.4)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.5% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access Control Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-POSTGRESQL-5838357
  • published11 Aug 2023
  • disclosed10 Aug 2023
  • creditDean Rasheed

Introduced: 10 Aug 2023

CVE-2023-39418  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade postgresql to version 15.4 or higher.

Overview

Affected versions of this package are vulnerable to Access Control Bypass via 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 row that INSERT policies do not forbid, a user could store such rows.

Note:

This affects only databases that have used CREATE POLICY to define a row security policy.

CVSS Scores

version 3.1