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-2044

CVE-2024-2044: pgAdmin 4 RCE Vulnerability

CVE-2024-2044 is a path-traversal RCE flaw in pgAdmin 4 affecting versions up to 8.3. Attackers can deserialize malicious pickle objects to execute arbitrary code. This article covers technical details, affected systems, and mitigation.

Updated: January 22, 2026

CVE-2024-2044 Overview

CVE-2024-2044 is a critical path traversal vulnerability in pgAdmin 4 versions 8.3 and earlier that enables unsafe deserialization of user session data, potentially leading to remote code execution. The vulnerability exists in the session handling code where improper validation of file paths allows attackers to load and deserialize malicious pickle objects. On Windows systems, this vulnerability can be exploited by unauthenticated attackers to achieve code execution, while on POSIX/Linux systems, authenticated attackers can upload and deserialize pickle objects to gain code execution.

Critical Impact

This vulnerability allows attackers to achieve remote code execution through unsafe deserialization of pickle objects, potentially leading to complete system compromise of database administration infrastructure.

Affected Products

  • pgAdmin 4 versions 8.3 and earlier
  • Fedora 40 (includes vulnerable pgAdmin packages)
  • All deployments of pgAdmin 4 for PostgreSQL administration

Discovery Timeline

  • 2024-03-07 - CVE-2024-2044 published to NVD
  • 2025-09-19 - Last updated in NVD database

Technical Details for CVE-2024-2044

Vulnerability Analysis

This vulnerability combines two dangerous security weaknesses: path traversal and insecure deserialization. The pgAdmin 4 application handles user sessions through a mechanism that deserializes session data from files. However, the session handling code fails to properly validate and sanitize file paths, allowing attackers to traverse directories and access arbitrary files on the system.

The critical security flaw lies in Python's pickle deserialization mechanism. When pickle deserializes data, it can execute arbitrary Python code embedded within the serialized object. By combining the path traversal weakness with this unsafe deserialization, attackers can craft malicious pickle objects that execute arbitrary code when loaded by the application.

The attack surface differs based on the operating system. On Windows, the vulnerability is particularly severe as it can be exploited without authentication. Attackers can potentially leverage SMB or WebDAV to serve malicious pickle files from remote locations, which the vulnerable session handler will then load and deserialize. On POSIX/Linux systems, exploitation requires authentication but remains a significant threat as authenticated users can upload malicious pickle files and trigger their deserialization.

Root Cause

The root cause is the combination of improper path validation in the session handling code (CWE-31: Path Traversal) and the use of Python's pickle module for deserializing untrusted data. The application fails to implement proper input sanitization on session file paths, allowing directory traversal sequences (such as ../) to escape the intended session storage directory. Additionally, the use of pickle for session serialization without proper integrity checks allows arbitrary code execution when malicious serialized objects are processed.

Attack Vector

The attack is conducted over the network and exploits the session handling functionality of pgAdmin 4. On Windows systems, an unauthenticated attacker can manipulate session identifiers or related parameters to include path traversal sequences, causing the application to load pickle files from attacker-controlled locations such as remote SMB shares. On Linux systems, an authenticated attacker first uploads a malicious pickle file to a known location on the server, then uses path traversal to reference that file as session data, triggering deserialization and code execution.

The exploitation leverages Python pickle's __reduce__ method, which allows defining custom behavior during deserialization. Attackers craft pickle objects that, when deserialized, execute system commands or establish reverse shells, granting full control over the affected server.

Detection Methods for CVE-2024-2044

Indicators of Compromise

  • Unusual file access patterns in pgAdmin session directories, particularly paths containing .. sequences
  • SMB connections from the pgAdmin server to external hosts (Windows environments)
  • Unexpected Python subprocess execution originating from pgAdmin processes
  • New or modified pickle files (.pkl, .pickle) in web-accessible or upload directories
  • Log entries showing session file paths pointing outside the expected session directory

Detection Strategies

  • Monitor web application logs for session identifiers containing path traversal patterns such as ../ or encoded variants
  • Implement file integrity monitoring on pgAdmin session storage directories
  • Configure network monitoring to detect outbound SMB/WebDAV connections from pgAdmin servers
  • Deploy application-level monitoring to detect unusual process spawning from Python/pgAdmin processes
  • Review authentication logs for patterns suggesting exploitation attempts by authenticated users

Monitoring Recommendations

  • Enable verbose logging in pgAdmin and review for anomalous session handling errors
  • Implement endpoint detection and response (EDR) monitoring on pgAdmin servers to detect post-exploitation activity
  • Configure alerts for any file operations in pgAdmin that reference paths outside designated directories
  • Monitor for unusual network connections initiated by the pgAdmin service, particularly to uncommon ports or external addresses

How to Mitigate CVE-2024-2044

Immediate Actions Required

  • Upgrade pgAdmin 4 to version 8.4 or later immediately
  • Restrict network access to pgAdmin instances to trusted IP ranges only
  • Implement web application firewall (WAF) rules to block path traversal patterns in session-related parameters
  • On Windows systems, disable or restrict SMB client functionality on pgAdmin servers where possible
  • Review and audit any pickle files present in pgAdmin directories for potential compromise

Patch Information

The pgAdmin development team has addressed this vulnerability in versions after 8.3. Organizations should upgrade to pgAdmin 4 version 8.4 or the latest available release. Detailed information about the fix is available in the pgAdmin GitHub Issue #7258. Fedora users should apply the security updates announced in the Fedora Package Announcement.

Workarounds

  • Deploy pgAdmin behind a reverse proxy with strict path filtering to reject requests containing path traversal sequences
  • Implement network segmentation to isolate pgAdmin servers from untrusted networks
  • On Windows, consider blocking outbound SMB traffic (TCP 445) from pgAdmin servers to prevent remote pickle loading
  • Use authentication enforcement even if the default configuration allows unauthenticated access in certain deployment modes
  • Consider running pgAdmin in a containerized environment with restricted filesystem access
bash
# Example: Block outbound SMB traffic on Windows pgAdmin server using Windows Firewall
netsh advfirewall firewall add rule name="Block Outbound SMB" dir=out action=block protocol=tcp remoteport=445

# Example: Restrict access to pgAdmin using iptables (Linux)
iptables -A INPUT -p tcp --dport 5050 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 5050 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPgadmin

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability80.90%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-31
  • Technical References
  • Fedora Package Announcement

  • Shielder Security Advisory
  • Vendor Resources
  • GitHub Issue Tracker Entry
  • Related CVEs
  • CVE-2025-13780: pgAdmin 4 RCE Vulnerability

  • CVE-2025-12762: Pgadmin 4 RCE Vulnerability

  • CVE-2025-2945: pgAdmin 4 Remote Code Execution Vulnerability

  • CVE-2024-3116: pgAdmin 4 Remote Code Execution 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