Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-48E6D514-5568-11EF-AF48-6CC21735F730 (CVE-2024-7348): PostgreSQL -- Prevent unauthorized code execution during pg_dump

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

FreeBSD: VID-48E6D514-5568-11EF-AF48-6CC21735F730 (CVE-2024-7348): PostgreSQL -- Prevent unauthorized code execution during pg_dump

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
08/08/2024
Created
08/10/2024
Added
08/08/2024
Modified
08/20/2024

Description

Time-of-check Time-of-use (TOCTOU) race condition in pg_dump in PostgreSQL allows an object creator to execute arbitrary SQL functions as the user running pg_dump, which is often a superuser. The attack involves replacing another relation type with a view or foreign table. The attack requires waiting for pg_dump to start, but winning the race condition is trivial if the attacker retains an open transaction. Versions before PostgreSQL 16.4, 15.8, 14.13, 13.16, and 12.20 are affected.

Solution(s)

  • freebsd-upgrade-package-postgresql12-client
  • freebsd-upgrade-package-postgresql12-server
  • freebsd-upgrade-package-postgresql13-client
  • freebsd-upgrade-package-postgresql13-server
  • freebsd-upgrade-package-postgresql14-client
  • freebsd-upgrade-package-postgresql14-server
  • freebsd-upgrade-package-postgresql15-client
  • freebsd-upgrade-package-postgresql15-server
  • freebsd-upgrade-package-postgresql16-client
  • freebsd-upgrade-package-postgresql16-server

insightVM

Advanced vulnerability management analytics and reporting.
Key Features
  • Lightweight Endpoint Agent
  • Live Dashboards
  • Real Risk Prioritization
  • IT-Integrated Remediation Projects
  • Cloud, Virtual, and Container Assessment
  • Integrated Threat Feeds
  • Easy-to-Use RESTful API
  • Automation-Assisted Patching
  • Automated Containment
Free InsightVM Trial View All Features

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

;