Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-29089

CVE-2026-29089: TimescaleDB RCE Vulnerability

CVE-2026-29089 is a remote code execution flaw in TimescaleDB affecting versions 2.23.0 to 2.25.1. Attackers can exploit search_path misconfigurations to execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation.

Published: March 13, 2026

CVE-2026-29089 Overview

CVE-2026-29089 is an Untrusted Search Path vulnerability affecting TimescaleDB, a high-performance time-series database packaged as a PostgreSQL extension. The vulnerability exists in versions 2.23.0 through 2.25.1 and stems from improper handling of the PostgreSQL search_path setting during extension upgrades.

PostgreSQL uses the search_path setting to locate unqualified database objects such as tables, functions, and operators. When this path includes user-writable schemas, a malicious user with database access can create functions that shadow built-in PostgreSQL functions. During extension upgrade operations, these malicious functions execute instead of the legitimate PostgreSQL functions, enabling arbitrary code execution with the privileges of the database user performing the upgrade.

Critical Impact

Local attackers with database access can achieve arbitrary code execution during TimescaleDB extension upgrades by exploiting search_path poisoning, potentially leading to full database compromise and container escape scenarios.

Affected Products

  • TimescaleDB versions 2.23.0 through 2.25.1
  • PostgreSQL installations with TimescaleDB extension
  • Systems where user-writable schemas are included in the search_path

Discovery Timeline

  • 2026-03-06 - CVE-2026-29089 published to NVD
  • 2026-03-09 - Last updated in NVD database

Technical Details for CVE-2026-29089

Vulnerability Analysis

This vulnerability falls under CWE-426 (Untrusted Search Path), a category of flaws where an application searches for critical resources using an externally-supplied or incompletely-qualified search path that could resolve to unintended resources.

In the context of TimescaleDB, the extension upgrade scripts execute SQL statements that reference PostgreSQL functions without fully qualifying them (e.g., calling some_function() instead of pg_catalog.some_function()). PostgreSQL resolves these function calls by iterating through the schemas listed in search_path until it finds a matching function.

When the search_path includes a schema that a regular user can write to (such as public), an attacker can pre-plant malicious functions with the same names as internal PostgreSQL functions. When an administrator subsequently upgrades the TimescaleDB extension, the upgrade scripts inadvertently invoke the attacker's functions instead of the legitimate ones, executing arbitrary code with elevated privileges.

Root Cause

The root cause lies in the SQL scripts used during TimescaleDB extension upgrades not setting a secure search_path at the beginning of execution. Without explicitly setting the search_path to trusted schemas only (such as pg_catalog and pg_temp), the scripts inherit the session's current search_path, which may include user-writable schemas.

The fix ensures that header.sql (which sets a secure search_path) is included at the very beginning of downgrade and upgrade scripts, preventing any subsequent SQL statements from being hijacked through search path poisoning.

Attack Vector

The attack requires local access to the PostgreSQL database with permissions to create functions in a schema included in the search_path. The attacker creates malicious functions that shadow PostgreSQL built-in functions used by the TimescaleDB upgrade scripts. When an administrator runs the extension upgrade, the malicious functions execute with the administrator's privileges, achieving arbitrary code execution.

text
-- Security patch in cmake/GenerateScripts.cmake
-- Ensure search_path is set before anything else in SQL scripts

   include(
     ${CMAKE_BINARY_DIR}/v${_downgrade_TARGET_VERSION}/cmake/ScriptFiles.cmake)
 
-  set(_downgrade_PRE_FILES ${PRE_DOWNGRADE_FILES})
+  set(_downgrade_PRE_FILES "header.sql;${PRE_DOWNGRADE_FILES}")
   set(_downgrade_POST_FILES "${PRE_INSTALL_FUNCTION_FILES};${SOURCE_FILES}" ${SET_POST_UPDATE_STAGE}
                             ${POST_UPDATE_FILES} ${UNSET_UPDATE_STAGE})

Source: GitHub Commit Update

Detection Methods for CVE-2026-29089

Indicators of Compromise

  • Unexpected functions created in the public schema or other user-writable schemas that match PostgreSQL built-in function names
  • Recent function creation activity in schemas included in the search_path prior to extension upgrades
  • Unusual database user activity patterns, particularly function creation by non-administrative users

Detection Strategies

  • Query pg_proc and pg_namespace to identify user-created functions that shadow system functions
  • Monitor CREATE FUNCTION statements in PostgreSQL logs, particularly those targeting the public schema
  • Implement database activity monitoring to detect function creation in production environments
  • Review TimescaleDB extension version to confirm whether vulnerable versions (2.23.0-2.25.1) are deployed

Monitoring Recommendations

  • Enable PostgreSQL statement logging (log_statement = 'ddl') to capture all DDL operations
  • Configure alerting for function creation events in schemas other than application-specific ones
  • Establish baseline monitoring for extension upgrade operations to detect anomalies
  • Audit search_path configurations across database sessions to identify insecure settings

How to Mitigate CVE-2026-29089

Immediate Actions Required

  • Upgrade TimescaleDB to version 2.25.2 or later immediately
  • Review existing functions in user-writable schemas for any suspicious entries that shadow PostgreSQL built-ins
  • Temporarily remove user-writable schemas from the search_path before performing any extension maintenance
  • Audit database user permissions to restrict function creation privileges where unnecessary

Patch Information

TimescaleDB has released version 2.25.2 which addresses this vulnerability by ensuring the header.sql file (which sets a secure search_path) is included at the beginning of all upgrade and downgrade scripts. This prevents search path poisoning attacks during extension operations.

For detailed patch information, refer to:

  • TimescaleDB Release 2.25.2
  • GitHub Pull Request 9331
  • GitHub Security Advisory GHSA-vgp2-jj5c-828m

Workarounds

  • Set a secure search_path explicitly before performing extension upgrades: SET search_path TO pg_catalog, pg_temp;
  • Revoke CREATE privileges on the public schema from non-administrative users
  • Configure the default search_path in postgresql.conf to exclude user-writable schemas
  • Use fully qualified function names in any custom SQL scripts interacting with TimescaleDB
bash
# Configuration example - Secure search_path in postgresql.conf
# Add or modify these settings in postgresql.conf

# Set a restricted default search_path for all sessions
search_path = 'pg_catalog, "$user"'

# For extension upgrade operations, explicitly set before running
# psql -c "SET search_path TO pg_catalog, pg_temp;" -c "ALTER EXTENSION timescaledb UPDATE;"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPostgres

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-426
  • Technical References
  • GitHub Commit Update

  • GitHub Pull Request 9331

  • TimescaleDB Release 2.25.2

  • GitHub Security Advisory GHSA-vgp2-jj5c-828m
  • Related CVEs
  • CVE-2026-21708: Backup Viewer RCE Vulnerability

  • CVE-2025-59468: Backup Administrator RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English