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-2024-10979

CVE-2024-10979: PostgreSQL PL/Perl RCE Vulnerability

CVE-2024-10979 is a remote code execution flaw in PostgreSQL PL/Perl that allows unprivileged users to manipulate environment variables and execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-10979 Overview

CVE-2024-10979 is a critical environment variable control vulnerability in PostgreSQL's PL/Perl procedural language extension. The flaw allows an unprivileged database user to manipulate sensitive process environment variables, such as PATH, which can lead to arbitrary code execution on the underlying server—even without direct operating system access.

Critical Impact

Unprivileged database users can achieve arbitrary code execution on PostgreSQL servers by manipulating environment variables through PL/Perl, potentially leading to complete system compromise.

Affected Products

  • PostgreSQL versions before 17.1
  • PostgreSQL versions before 16.5
  • PostgreSQL versions before 15.9
  • PostgreSQL versions before 14.14
  • PostgreSQL versions before 13.17
  • PostgreSQL versions before 12.21

Discovery Timeline

  • November 14, 2024 - CVE-2024-10979 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2024-10979

Vulnerability Analysis

This vulnerability stems from improper control of environment variables (CWE-15) and externally controlled reference to a resource in another sphere (CWE-610) within PostgreSQL's PL/Perl implementation. The PL/Perl extension allows database users to write stored procedures and functions using the Perl programming language. However, the implementation fails to properly restrict modifications to sensitive environment variables from within PL/Perl code.

When a database user with privileges to execute PL/Perl functions manipulates environment variables like PATH, they can redirect system command execution to malicious binaries. This is particularly dangerous because the code executes in the context of the PostgreSQL server process, which typically runs with elevated privileges on the host system.

Root Cause

The root cause lies in PostgreSQL's PL/Perl extension not implementing adequate safeguards against environment variable manipulation. PL/Perl functions execute within the PostgreSQL backend process, and the extension provides access to Perl's %ENV hash, which directly maps to the process environment. Without proper restrictions, any user with CREATE FUNCTION privileges on PL/Perl can modify critical environment variables that affect how external commands are resolved and executed.

This architectural oversight allows a privilege escalation path from database-level access to operating system-level code execution, bypassing the traditional security boundary between database operations and host system access.

Attack Vector

The attack vector is network-based, requiring only low-privileged authenticated access to the PostgreSQL database. An attacker needs the ability to create and execute PL/Perl functions. The exploitation path typically involves:

  1. Creating a PL/Perl function that modifies the PATH environment variable
  2. Pointing the modified PATH to a directory containing malicious executables
  3. Triggering the execution of system commands that will now resolve to the attacker-controlled binaries

The vulnerability does not require user interaction and can be exploited remotely through standard database connections. The attack complexity is low, as the manipulation of environment variables through PL/Perl is straightforward for anyone with basic Perl knowledge.

For detailed technical analysis, refer to the PostgreSQL Security Advisory and the GitHub Vulnerability Documentation.

Detection Methods for CVE-2024-10979

Indicators of Compromise

  • Unusual PL/Perl functions that reference or modify %ENV hash values
  • Database audit logs showing creation of PL/Perl functions with environment variable manipulation
  • Unexpected process executions originating from the PostgreSQL server process
  • Modified environment variables in PostgreSQL backend processes, particularly PATH, LD_PRELOAD, or LD_LIBRARY_PATH

Detection Strategies

  • Monitor PostgreSQL audit logs for CREATE FUNCTION statements using PL/Perl language with references to %ENV
  • Implement database activity monitoring to detect unusual function creation patterns by non-administrative users
  • Deploy endpoint detection to identify anomalous child processes spawned by PostgreSQL backends
  • Review existing PL/Perl functions across all databases for environment variable manipulation code

Monitoring Recommendations

  • Enable PostgreSQL logging with log_statement = 'ddl' to capture all function creation events
  • Configure SentinelOne to monitor PostgreSQL process trees for unexpected child process execution
  • Set up alerts for modification of security-sensitive environment variables in database server processes
  • Regularly audit PL/Perl function definitions using pg_proc system catalog queries

How to Mitigate CVE-2024-10979

Immediate Actions Required

  • Upgrade PostgreSQL to patched versions: 17.1, 16.5, 15.9, 14.14, 13.17, or 12.21
  • Restrict CREATE FUNCTION privileges for PL/Perl to trusted administrators only
  • Audit existing PL/Perl functions for environment variable manipulation
  • Consider disabling PL/Perl extension if not required for business operations

Patch Information

PostgreSQL has released security updates addressing this vulnerability across all supported version branches. Organizations should upgrade to the following minimum versions:

Current Version BranchMinimum Patched Version
PostgreSQL 17.x17.1
PostgreSQL 16.x16.5
PostgreSQL 15.x15.9
PostgreSQL 14.x14.14
PostgreSQL 13.x13.17
PostgreSQL 12.x12.21

For detailed patch information, consult the PostgreSQL Security Advisory. Additional advisories have been released by Debian LTS and NetApp.

Workarounds

  • Revoke PL/Perl usage privileges from non-administrative database users using REVOKE USAGE ON LANGUAGE plperl FROM PUBLIC;
  • Drop the PL/Perl extension entirely if not required: DROP EXTENSION IF EXISTS plperl CASCADE;
  • Implement strict database role separation to limit which accounts can create procedural language functions
  • Use plperlu (untrusted PL/Perl) only for superuser-owned functions and ensure regular plperl restrictions are enforced
sql
-- Revoke PL/Perl privileges from public
REVOKE USAGE ON LANGUAGE plperl FROM PUBLIC;

-- Audit existing PL/Perl functions for environment variable access
SELECT n.nspname AS schema_name,
       p.proname AS function_name,
       pg_get_functiondef(p.oid) AS function_definition
FROM pg_proc p
JOIN pg_namespace n ON p.pronamespace = n.oid
WHERE p.prolang = (SELECT oid FROM pg_language WHERE lanname = 'plperl')
  AND pg_get_functiondef(p.oid) LIKE '%ENV%';

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPostgresql

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability6.86%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-15

  • CWE-610
  • Technical References
  • Debian LTS Security Notice

  • NetApp Security Advisory
  • Vendor Resources
  • PostgreSQL Security Advisory

  • GitHub Vulnerability Documentation
  • Related CVEs
  • CVE-2025-13957: Hard-coded Credentials RCE Vulnerability

  • CVE-2026-2004: PostgreSQL intarray Extension RCE Flaw

  • CVE-2026-2006: PostgreSQL RCE Vulnerability

  • CVE-2023-5869: PostgreSQL RCE Vulnerability
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