Rapid7 Vulnerability & Exploit Database

Rocky Linux: CVE-2024-0985: postgresql-13 (Multiple Advisories)

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

Rocky Linux: CVE-2024-0985: postgresql-13 (Multiple Advisories)

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
02/08/2024
Created
03/14/2024
Added
03/13/2024
Modified
05/13/2024

Description

Late privilege drop in REFRESH MATERIALIZED VIEW CONCURRENTLY in PostgreSQL allows an object creator to execute arbitrary SQL functions as the command issuer. The command intends to run SQL functions as the owner of the materialized view, enabling safe refresh of untrusted materialized views. The victim is a superuser or member of one of the attacker's roles. The attack requires luring the victim into running REFRESH MATERIALIZED VIEW CONCURRENTLY on the attacker's materialized view. As part of exploiting this vulnerability, the attacker creates functions that use CREATE RULE to convert the internally-built temporary table to a view. Versions before PostgreSQL 15.6, 14.11, 13.14, and 12.18 are affected. The only known exploit does not work in PostgreSQL 16 and later. For defense in depth, PostgreSQL 16.2 adds the protections that older branches are using to fix their vulnerability.

Solution(s)

  • rocky-upgrade-pg_repack
  • rocky-upgrade-pg_repack-debuginfo
  • rocky-upgrade-pg_repack-debugsource
  • rocky-upgrade-pgaudit
  • rocky-upgrade-pgaudit-debuginfo
  • rocky-upgrade-pgaudit-debugsource
  • rocky-upgrade-postgres-decoderbufs
  • rocky-upgrade-postgres-decoderbufs-debuginfo
  • rocky-upgrade-postgres-decoderbufs-debugsource
  • rocky-upgrade-postgresql
  • rocky-upgrade-postgresql-contrib
  • rocky-upgrade-postgresql-contrib-debuginfo
  • rocky-upgrade-postgresql-debuginfo
  • rocky-upgrade-postgresql-debugsource
  • rocky-upgrade-postgresql-docs
  • rocky-upgrade-postgresql-docs-debuginfo
  • rocky-upgrade-postgresql-plperl
  • rocky-upgrade-postgresql-plperl-debuginfo
  • rocky-upgrade-postgresql-plpython3
  • rocky-upgrade-postgresql-plpython3-debuginfo
  • rocky-upgrade-postgresql-pltcl
  • rocky-upgrade-postgresql-pltcl-debuginfo
  • rocky-upgrade-postgresql-private-devel
  • rocky-upgrade-postgresql-private-libs
  • rocky-upgrade-postgresql-private-libs-debuginfo
  • rocky-upgrade-postgresql-server
  • rocky-upgrade-postgresql-server-debuginfo
  • rocky-upgrade-postgresql-server-devel
  • rocky-upgrade-postgresql-server-devel-debuginfo
  • rocky-upgrade-postgresql-static
  • rocky-upgrade-postgresql-test
  • rocky-upgrade-postgresql-test-debuginfo
  • rocky-upgrade-postgresql-test-rpm-macros
  • rocky-upgrade-postgresql-upgrade
  • rocky-upgrade-postgresql-upgrade-debuginfo
  • rocky-upgrade-postgresql-upgrade-devel
  • rocky-upgrade-postgresql-upgrade-devel-debuginfo

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;