Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

nvd логотип

CVE-2023-2455

Опубликовано: 09 июн. 2023
Источник: nvd
CVSS3: 5.4
EPSS Низкий

Уязвимость некорректного применения политик безопасности строк в PostgreSQL при изменении идентификатора пользователя после инлайнинга

Описание

В PostgreSQL политики безопасности строк не учитывают изменения идентификатора пользователя после инлайнинга, что позволяет некорректным политикам применяться в определённых случаях. Это происходит, если используются политики, зависящие от роли, и запрос планируется под одной ролью, а выполняется под другой. Такой сценарий возможен в функциях, определённых для безопасного выполнения, или когда общий пользователь и запрос изначально планируются и затем повторно используются через несколько SET ROLE. Применение некорректной политики может позволить пользователю выполнить чтение и модификации данных, которые в обычном случае запрещены. Это затрагивает только базы данных, в которых определена политика безопасности строк с помощью CREATE POLICY.

Тип уязвимости

Некорректное применение политик безопасности

Уязвимые конфигурации

Конфигурация 1

Одно из

cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Версия от 11.0 (включая) до 11.20 (исключая)
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Версия от 12.0 (включая) до 12.15 (исключая)
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Версия от 13.0 (включая) до 13.11 (исключая)
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Версия от 14.0 (включая) до 14.8 (исключая)
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Версия от 15.0 (включая) до 15.3 (исключая)
Конфигурация 2

Одно из

cpe:2.3:a:redhat:software_collections:-:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Конфигурация 3
cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*

EPSS

Процентиль: 44%
0.00212
Низкий

5.4 Medium

CVSS3

Дефекты

CWE-20
NVD-CWE-noinfo

Связанные уязвимости

CVSS3: 5.4
ubuntu
около 2 лет назад

Row security policies disregard user ID changes after inlining; PostgreSQL could permit incorrect policies to be applied in certain cases where role-specific policies are used and a given query is planned under one role and then executed under other roles. This scenario can happen under security definer functions or when a common user and query is planned initially and then re-used across multiple SET ROLEs. Applying an incorrect policy may permit a user to complete otherwise-forbidden reads and modifications. This affects only databases that have used CREATE POLICY to define a row security policy.

CVSS3: 4.2
redhat
около 2 лет назад

Row security policies disregard user ID changes after inlining; PostgreSQL could permit incorrect policies to be applied in certain cases where role-specific policies are used and a given query is planned under one role and then executed under other roles. This scenario can happen under security definer functions or when a common user and query is planned initially and then re-used across multiple SET ROLEs. Applying an incorrect policy may permit a user to complete otherwise-forbidden reads and modifications. This affects only databases that have used CREATE POLICY to define a row security policy.

CVSS3: 5.4
msrc
6 месяцев назад

Описание отсутствует

CVSS3: 5.4
debian
около 2 лет назад

Row security policies disregard user ID changes after inlining; Postgr ...

CVSS3: 5.4
github
около 2 лет назад

Row security policies disregard user ID changes after inlining; PostgreSQL could permit incorrect policies to be applied in certain cases where role-specific policies are used and a given query is planned under one role and then executed under other roles. This scenario can happen under security definer functions or when a common user and query is planned initially and then re-used across multiple SET ROLEs. Applying an incorrect policy may permit a user to complete otherwise-forbidden reads and modifications. This affects only databases that have used CREATE POLICY to define a row security policy.

EPSS

Процентиль: 44%
0.00212
Низкий

5.4 Medium

CVSS3

Дефекты

CWE-20
NVD-CWE-noinfo