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-2021-47853

CVE-2021-47853: phpPgAdmin RCE Vulnerability

CVE-2021-47853 is a remote code execution vulnerability in phpPgAdmin 7.13.0 that enables authenticated attackers to execute arbitrary system commands via SQL manipulation. This article covers technical details, impact, and mitigation.

Published: January 23, 2026

CVE-2021-47853 Overview

CVE-2021-47853 is a remote command execution vulnerability affecting phpPgAdmin version 7.13.0. This vulnerability allows authenticated attackers to execute arbitrary system commands through SQL query manipulation by creating a custom table, uploading a malicious .txt file, and leveraging PostgreSQL's COPY FROM PROGRAM command to execute operating system commands with the application's privileges.

Critical Impact

Authenticated attackers can achieve full remote command execution on vulnerable phpPgAdmin 7.13.0 installations, potentially leading to complete system compromise, data exfiltration, and lateral movement within the network.

Affected Products

  • phpPgAdmin 7.13.0

Discovery Timeline

  • 2026-01-21 - CVE CVE-2021-47853 published to NVD
  • 2026-01-21 - Last updated in NVD database

Technical Details for CVE-2021-47853

Vulnerability Analysis

This vulnerability is classified as Command Injection (CWE-78), which occurs when an application passes unsafe user-controllable data to a system shell. In phpPgAdmin 7.13.0, the web-based PostgreSQL administration tool fails to adequately restrict the use of PostgreSQL's powerful COPY FROM PROGRAM functionality, enabling authenticated users to execute arbitrary operating system commands.

The attack chain requires authenticated access to the phpPgAdmin interface, but once that prerequisite is met, the attacker can leverage legitimate database functionality to break out of the intended application sandbox and execute commands directly on the underlying operating system.

Root Cause

The root cause of this vulnerability lies in insufficient input validation and inadequate restrictions on the PostgreSQL COPY FROM PROGRAM command within the phpPgAdmin interface. The COPY FROM PROGRAM feature in PostgreSQL is designed to allow data to be piped from the output of a shell command directly into a table. While this is a powerful administrative feature, phpPgAdmin 7.13.0 does not properly restrict authenticated users from abusing this functionality.

When users create a custom table and then use the data import functionality with a crafted .txt file, they can inject arbitrary shell commands that are executed by the PostgreSQL backend with the privileges of the PostgreSQL service account.

Attack Vector

The attack is network-based and requires authenticated access to the phpPgAdmin web interface. The exploitation process involves the following steps:

  1. An authenticated attacker creates a new database table with an appropriate schema to receive data
  2. The attacker prepares a malicious .txt file containing crafted content
  3. Using phpPgAdmin's import functionality, the attacker leverages the COPY FROM PROGRAM SQL command
  4. The PostgreSQL server executes the specified program/command with its service account privileges
  5. Command output can be captured in the created table, allowing data exfiltration or confirmation of successful exploitation

This vulnerability does not require user interaction beyond initial authentication, and it can be exploited remotely over the network. Technical details and proof-of-concept information are available from the Exploit-DB #49736 and the VulnCheck Advisory.

Detection Methods for CVE-2021-47853

Indicators of Compromise

  • Unexpected database tables created by non-administrative users with generic names designed to capture command output
  • PostgreSQL logs showing COPY FROM PROGRAM statements with shell commands such as id, whoami, cat /etc/passwd, or reverse shell payloads
  • Web server access logs showing unusual POST requests to phpPgAdmin data import or SQL execution endpoints
  • Suspicious processes spawned as child processes of the PostgreSQL service account

Detection Strategies

  • Monitor PostgreSQL audit logs for COPY FROM PROGRAM statements, particularly those containing shell metacharacters or known command injection patterns
  • Implement web application firewall (WAF) rules to detect and block SQL injection attempts containing COPY FROM PROGRAM syntax
  • Configure SentinelOne to alert on unexpected child processes spawned by PostgreSQL service processes
  • Review phpPgAdmin access logs for authenticated sessions performing unusual sequences of table creation followed by data imports

Monitoring Recommendations

  • Enable detailed PostgreSQL logging including log_statement = 'all' to capture all SQL queries for forensic analysis
  • Configure alerting for any usage of COPY FROM PROGRAM in production environments where this functionality is not required
  • Monitor system-level process creation events for commands spawned by the database service user
  • Implement network monitoring to detect outbound connections from database servers that may indicate reverse shell activity

How to Mitigate CVE-2021-47853

Immediate Actions Required

  • Audit all phpPgAdmin installations and identify any running version 7.13.0
  • Restrict network access to phpPgAdmin interfaces using firewall rules to limit exposure to trusted administrators only
  • Review PostgreSQL user permissions and remove SUPERUSER privileges from accounts that do not require them
  • Consider temporarily disabling phpPgAdmin until a patched version can be deployed or alternative mitigations are in place

Patch Information

Users should check for updated versions of phpPgAdmin via the official GitHub releases page. Organizations should evaluate whether continued use of phpPgAdmin is necessary or if alternative PostgreSQL administration tools with better security postures are available.

Workarounds

  • Disable or remove the phpPgAdmin installation if it is not actively required for operations
  • Implement strict network segmentation to ensure phpPgAdmin is only accessible from trusted management networks
  • Configure PostgreSQL to disallow COPY FROM PROGRAM by restricting file system access permissions or using row-level security policies
  • Use a reverse proxy with authentication and request filtering in front of phpPgAdmin to add an additional security layer
  • Audit and minimize PostgreSQL user privileges, ensuring application accounts do not have unnecessary permissions
bash
# PostgreSQL configuration to enhance logging (postgresql.conf)
log_statement = 'all'
log_min_duration_statement = 0
log_connections = on
log_disconnections = on

# Restrict phpPgAdmin access via iptables (example)
iptables -A INPUT -p tcp --dport 80 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -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/TechPhppgadmin

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.23%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Releases for phppgadmin

  • Exploit-DB #49736

  • VulnCheck Advisory: phppgadmin Command Execution
  • Latest CVEs
  • CVE-2026-25874: LeRobot RCE Vulnerability

  • CVE-2026-41272: Flowise LLM Builder SSRF Vulnerability

  • CVE-2026-41268: Flowise RCE Vulnerability

  • CVE-2026-41265: Flowise Airtable Agent 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