The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2020-14350

CVE-2020-14350: PostgreSQL Privilege Escalation Vulnerability

CVE-2020-14350 is a privilege escalation vulnerability in PostgreSQL where unsafe search_path handling in extensions allows attackers to execute malicious scripts during installation or updates. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 4, 2026

CVE-2020-14350 Overview

CVE-2020-14350 is a privilege escalation vulnerability affecting PostgreSQL database extensions. The vulnerability exists because certain PostgreSQL extensions did not safely handle the search_path setting in their installation scripts. An attacker with sufficient database privileges could exploit this flaw to trick an administrator into executing a specially crafted script during the installation or update of a vulnerable extension, potentially leading to unauthorized code execution with elevated privileges.

Critical Impact

Attackers can hijack extension installation processes to execute malicious code with administrator privileges, potentially compromising the entire PostgreSQL database server and underlying system.

Affected Products

  • PostgreSQL versions before 12.4
  • PostgreSQL versions before 11.9
  • PostgreSQL versions before 10.14
  • PostgreSQL versions before 9.6.19
  • PostgreSQL versions before 9.5.23
  • Debian Linux 9.0
  • openSUSE Leap 15.1 and 15.2
  • Ubuntu Linux 16.04 ESM, 18.04 LTS, and 20.04 LTS

Discovery Timeline

  • August 24, 2020 - CVE-2020-14350 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-14350

Vulnerability Analysis

This vulnerability stems from improper handling of the search_path configuration parameter in PostgreSQL extension installation scripts. PostgreSQL uses search_path to determine the order in which schemas are searched when resolving unqualified object names. When extension scripts do not explicitly set or restrict the search_path, attackers can manipulate which objects get resolved during extension operations.

The attack requires the attacker to have privileges sufficient to create objects in a schema that appears in the default search_path before the pg_catalog schema. By creating malicious functions or other database objects with the same names as those expected by the extension script, the attacker can hijack the execution flow when an administrator installs or updates the extension.

Root Cause

The root cause is classified as CWE-426 (Untrusted Search Path). PostgreSQL extension installation scripts were not properly setting a secure search_path before executing SQL statements. This allowed objects from untrusted schemas to be resolved and executed instead of the intended system objects. The lack of explicit schema qualification in function calls and object references created an attack surface where user-controlled objects could be substituted for legitimate extension components.

Attack Vector

The attack vector is local, requiring the attacker to have an existing account with sufficient privileges on the target PostgreSQL database. The attack proceeds as follows:

  1. The attacker creates a malicious function or object in a schema that will be searched before the intended schema
  2. An administrator initiates the installation or update of a vulnerable extension
  3. The extension script executes SQL statements that reference unqualified object names
  4. PostgreSQL resolves these names using the compromised search_path, executing the attacker's malicious code
  5. The malicious code runs with the privileges of the administrator performing the installation

This vulnerability requires user interaction (the administrator must install or update an extension) and local access to the database with object creation privileges. When successfully exploited, it can result in complete compromise of confidentiality, integrity, and availability of the database system.

Detection Methods for CVE-2020-14350

Indicators of Compromise

  • Unexpected functions or objects in user-accessible schemas that mirror names of common extension functions
  • Unusual schema creation activity by non-administrative users prior to extension operations
  • Audit logs showing execution of unexpected code during extension installation processes
  • Database objects with suspicious definitions in schemas appearing early in the default search_path

Detection Strategies

  • Monitor PostgreSQL logs for extension installation and update operations, correlating with any unusual object creation in preceding timeframes
  • Implement database activity monitoring to detect creation of objects that shadow legitimate extension components
  • Review audit logs for CREATE FUNCTION or CREATE OBJECT statements in public or user schemas that match known extension function names
  • Deploy SentinelOne Singularity to detect anomalous process behavior on database servers during administrative operations

Monitoring Recommendations

  • Enable detailed PostgreSQL logging including log_statement = 'all' to capture all SQL execution during extension operations
  • Configure alerts for schema modifications in non-system schemas prior to planned extension maintenance windows
  • Implement file integrity monitoring on PostgreSQL extension script directories to detect unauthorized modifications
  • Use SentinelOne's behavioral AI to identify suspicious database server process activity that may indicate post-exploitation actions

How to Mitigate CVE-2020-14350

Immediate Actions Required

  • Upgrade PostgreSQL to patched versions: 12.4, 11.9, 10.14, 9.6.19, or 9.5.23 or later
  • Review and audit existing database schemas for suspicious objects that could hijack extension installations
  • Restrict privileges for creating objects in schemas that appear in the default search_path
  • Apply operating system patches from Debian, Ubuntu, and openSUSE as referenced in their security advisories

Patch Information

PostgreSQL has released patched versions addressing this vulnerability. Organizations should upgrade to the following minimum versions:

  • PostgreSQL 12.4 or later for 12.x installations
  • PostgreSQL 11.9 or later for 11.x installations
  • PostgreSQL 10.14 or later for 10.x installations
  • PostgreSQL 9.6.19 or later for 9.6.x installations
  • PostgreSQL 9.5.23 or later for 9.5.x installations

Distribution-specific patches are available via the Ubuntu Security Notice 4472-1, Debian LTS Security Announcement, Gentoo GLSA 202008-13, and various openSUSE Security Announcements. Additional details are available in the Red Hat Bug Report.

Workarounds

  • Set search_path explicitly to pg_catalog, pg_temp before running any extension installation or update scripts
  • Revoke CREATE privileges on the public schema from all non-administrative users
  • Audit and remove any untrusted objects from schemas that appear in the default search_path before extension operations
  • Consider running extension installations with a superuser account that has a restrictive search_path configured
bash
# Secure search_path configuration for extension installation
# Add to postgresql.conf or run before extension operations
psql -U postgres -c "SET search_path TO pg_catalog, pg_temp;"

# Revoke CREATE privileges on public schema
psql -U postgres -c "REVOKE CREATE ON SCHEMA public FROM PUBLIC;"

# Verify current search_path setting
psql -U postgres -c "SHOW search_path;"

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechPostgresql

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-426
  • Technical References
  • openSUSE Security Announcement

  • openSUSE Security Announcement

  • openSUSE Security Announcement

  • openSUSE Security Announcement

  • openSUSE Security Announcement

  • openSUSE Security Announcement

  • Red Hat Bug Report

  • Debian LTS Security Announcement

  • Gentoo GLSA 202008-13

  • NetApp Security Advisory

  • Ubuntu Security Notice 4472-1
  • Related CVEs
  • CVE-2026-2361: PostgreSQL Anonymizer Privilege Escalation

  • CVE-2026-2360: PostgreSQL Anonymizer Privilege Escalation

  • CVE-2024-10978: PostgreSQL Privilege Escalation Flaw

  • CVE-2024-0985: PostgreSQL Privilege Escalation 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