A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-3116

CVE-2024-3116: pgAdmin 4 RCE Vulnerability

CVE-2024-3116 is a remote code execution vulnerability in pgAdmin 4 through the validate binary path API. Attackers can execute arbitrary code on the server, compromising database integrity. This article covers technical details, affected versions, impact, and mitigation steps.

Updated: May 14, 2026

CVE-2024-3116 Overview

CVE-2024-3116 is a remote code execution (RCE) vulnerability affecting pgAdmin versions 8.4 and earlier. The flaw exists in the validate binary path API endpoint, which fails to properly sanitize user-supplied input before passing it to system execution routines. An attacker who can reach the pgAdmin web interface can abuse this endpoint to execute arbitrary commands on the host operating system. Because pgAdmin is the most widely deployed administration tool for PostgreSQL, successful exploitation places both the management server and connected database instances at risk. The vulnerability is tracked under [CWE-77] (Improper Neutralization of Special Elements used in a Command).

Critical Impact

Unauthenticated network-based attackers can execute arbitrary code on servers running pgAdmin 8.4 or earlier, compromising PostgreSQL administration hosts and connected databases.

Affected Products

  • pgAdmin 4 versions up to and including 8.4 (pgadmin:pgadmin_4)
  • Fedora 39 distributions shipping vulnerable pgAdmin packages (fedoraproject:fedora:39)
  • PostgreSQL environments managed through vulnerable pgAdmin installations

Discovery Timeline

  • 2024-04-04 - CVE-2024-3116 published to the National Vulnerability Database
  • 2025-03-17 - Last updated in NVD database

Technical Details for CVE-2024-3116

Vulnerability Analysis

The vulnerability resides in the binary path validation API exposed by pgAdmin. This endpoint accepts a file path parameter that pgAdmin uses to locate PostgreSQL binaries such as pg_dump and pg_restore. The handler invokes the supplied path through a shell-aware execution routine without enforcing strict allow-list validation or escaping shell metacharacters. As a result, an attacker can append additional commands to the input and have them executed in the context of the pgAdmin process. Because the endpoint is reachable over the network and does not require prior authentication in vulnerable configurations, the attack surface extends to any pgAdmin instance exposed to untrusted networks.

Root Cause

The root cause is improper neutralization of special elements passed to a command interpreter [CWE-77]. The validate binary path API trusts caller-controlled file path data and forwards it to an OS execution function. Shell metacharacters such as ;, &&, and backticks are not stripped or escaped, so the underlying shell interprets injected payloads as separate commands.

Attack Vector

Exploitation requires network access to the pgAdmin web interface. An attacker sends a crafted HTTP request to the binary path validation endpoint containing a payload that combines a valid-looking path with shell command separators. The pgAdmin backend processes the request and executes the appended commands with the privileges of the pgAdmin service account. A public proof-of-concept demonstrating the request format is referenced in the GitHub Gist PoC Script and discussed in the GitHub Issue Discussion. Additional analysis is available in the Vicarius Blog Post on CVE-2024-3116. The EPSS score for this CVE indicates a high probability of exploitation activity in the wild.

Detection Methods for CVE-2024-3116

Indicators of Compromise

  • HTTP POST requests to pgAdmin endpoints containing the string validate_binary_path with shell metacharacters such as ;, |, &&, or backticks in the payload
  • Unexpected child processes spawned by the pgAdmin Python process (python, pgadmin4), including shells such as /bin/sh, bash, or cmd.exe
  • Outbound network connections initiated by the pgAdmin process to unfamiliar IP addresses shortly after API calls
  • New files written to pgAdmin installation directories or web-accessible paths following requests to the binary path endpoint

Detection Strategies

  • Monitor pgAdmin web server access logs for requests targeting the binary path validation API with non-standard characters in path parameters
  • Apply process ancestry rules that flag command interpreters launched by the pgAdmin service account
  • Correlate web request logs with endpoint process telemetry to identify request-to-execution chains indicative of command injection

Monitoring Recommendations

  • Forward pgAdmin application logs and host process telemetry to a centralized logging platform for retrospective hunting
  • Alert on any execution of system utilities such as curl, wget, nc, whoami, or id originating from the pgAdmin process tree
  • Track outbound connections from pgAdmin hosts and baseline normal behavior so anomalous destinations trigger review

How to Mitigate CVE-2024-3116

Immediate Actions Required

  • Upgrade pgAdmin to version 8.5 or later, which addresses the binary path validation flaw
  • Restrict network access to the pgAdmin web interface so it is reachable only from trusted administrative networks or via VPN
  • Audit pgAdmin hosts for signs of prior exploitation, including unexpected processes, scheduled tasks, and outbound connections
  • Rotate database credentials and any secrets stored in pgAdmin configuration if compromise is suspected

Patch Information

The pgAdmin development team released a fixed version following responsible disclosure. Fedora users should apply updates referenced in the Fedora Package Announcement. Track upstream fixes through the GitHub Issue Discussion on the pgadmin4 repository.

Workarounds

  • Place pgAdmin behind an authenticating reverse proxy that enforces strong authentication and IP allow-listing
  • Run pgAdmin under a low-privilege service account that cannot access sensitive files or escalate locally
  • Disable or block access to the binary path validation endpoint at the web server or WAF layer until patching is complete
  • Apply web application firewall rules that reject requests containing shell metacharacters in pgAdmin API parameters
bash
# Example NGINX configuration to restrict pgAdmin to a trusted management subnet
location /pgadmin4/ {
    allow 10.10.20.0/24;
    deny all;
    proxy_pass http://127.0.0.1:5050/;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
}

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.8

  • EPSS Probability90.68%

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

  • CWE-77
  • Technical References
  • GitHub Gist PoC Script

  • GitHub Issue Discussion

  • Fedora Package Announcement

  • Vicarius Blog Post on CVE-2024-3116
  • Related CVEs
  • CVE-2026-7816: pgAdmin 4 RCE Vulnerability Explained

  • CVE-2026-7818: pgAdmin 4 Deserialization RCE Vulnerability

  • CVE-2025-13780: pgAdmin 4 RCE Vulnerability

  • CVE-2025-12763: pgAdmin 4 RCE Vulnerability on Windows
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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