CVE-2023-2455

MEDIUMCVSS 5.4/10EPSS 0.69%

Last modified

CVE-2023-2455 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. 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. EPSS estimates a 0.69% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
5.4/10

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

EPSS Probability
0.69%

48.2th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PostgresqlPostgresql>= 11.0, < 11.20
PostgresqlPostgresql>= 12.0, < 12.15
PostgresqlPostgresql>= 13.0, < 13.11
PostgresqlPostgresql>= 14.0, < 14.8
PostgresqlPostgresql>= 15.0, < 15.3
RedhatSoftware CollectionsAll versions
RedhatEnterprise Linux8.0
RedhatEnterprise Linux9.0
FedoraprojectFedora38

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2023-2455?
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.
How severe is CVE-2023-2455?
CVE-2023-2455 has a CVSS score of 5.4/10 (MEDIUM severity). The EPSS model estimates a 0.69% probability of exploitation in the next 30 days.
How do I fix CVE-2023-2455?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2023-2455?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST