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
    • 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-2025-12763

CVE-2025-12763: pgAdmin 4 RCE Vulnerability on Windows

CVE-2025-12763 is a command injection RCE vulnerability in pgAdmin 4 on Windows systems. Attackers can execute arbitrary commands through crafted file paths during backup operations. This article covers affected versions, impact, and mitigation.

Updated: May 19, 2026

CVE-2025-12763 Overview

CVE-2025-12763 is a command injection vulnerability affecting pgAdmin 4 versions up to and including 9.9 on Microsoft Windows systems. The flaw originates from the use of shell=True in subprocess calls during backup and restore operations. Attackers can supply a crafted file path that the application passes unsanitized to the underlying Windows shell, resulting in arbitrary command execution in the context of the pgAdmin process. The issue is tracked under CWE-78 (Improper Neutralization of Special Elements used in an OS Command).

Critical Impact

Authenticated users can execute arbitrary operating system commands on Windows hosts running vulnerable pgAdmin 4 instances by manipulating backup or restore file path input.

Affected Products

  • pgAdmin 4 versions up to and including 9.9
  • Microsoft Windows (all supported versions running pgAdmin 4)
  • PostgreSQL deployments managed via vulnerable pgAdmin 4 installations

Discovery Timeline

  • 2025-11-13 - CVE-2025-12763 published to NVD
  • 2025-12-01 - Last updated in NVD database

Technical Details for CVE-2025-12763

Vulnerability Analysis

The vulnerability resides in pgAdmin 4's backup and restore subsystem on Windows. The application invokes external PostgreSQL utilities such as pg_dump.exe and pg_restore.exe through Python's subprocess module with the shell=True argument. When shell=True is set, Python passes the command string to cmd.exe for interpretation, where metacharacters such as &, |, ;, and % are evaluated by the shell rather than treated as literal path components.

pgAdmin 4 accepts a file path as part of the backup or restore workflow. The application concatenates this path into the command line without escaping shell metacharacters. An attacker who can submit a backup or restore request can embed additional commands inside the file path field. The shell parses those commands and executes them with the privileges of the pgAdmin server process.

Successful exploitation grants execution of arbitrary Windows commands. This can lead to credential theft, lateral movement, or full host compromise depending on the privileges of the pgAdmin service account.

Root Cause

The root cause is unsafe construction of shell commands. Using shell=True with user-controlled string input violates the principle of separating commands from data. Safe alternatives pass arguments as a list to subprocess.Popen with shell=False, which avoids shell interpretation of metacharacters.

Attack Vector

The attack vector is network-based and requires user interaction, typically an authenticated pgAdmin session. An attacker triggers a backup or restore operation and supplies a malicious file path containing shell metacharacters. See the pgAdmin GitHub Issue Report for technical details on the unsafe subprocess invocation.

Detection Methods for CVE-2025-12763

Indicators of Compromise

  • Unexpected child processes spawned by pgAdmin4.exe or the Python interpreter hosting pgAdmin, such as cmd.exe, powershell.exe, or wscript.exe.
  • Backup or restore file path parameters containing shell metacharacters including &, |, ;, backticks, or %COMSPEC% references.
  • Outbound network connections initiated by pgAdmin child processes to non-PostgreSQL endpoints.

Detection Strategies

  • Monitor process creation events on Windows hosts running pgAdmin and alert on pg_dump.exe or pg_restore.exe parent chains that spawn shells or scripting engines.
  • Inspect pgAdmin application logs for backup and restore requests containing suspicious file path values.
  • Apply CWE-78 detection patterns that flag command-line strings concatenating user input with executable paths.

Monitoring Recommendations

  • Enable Windows command-line auditing through Event ID 4688 with command-line logging enabled.
  • Forward pgAdmin server logs and Windows Sysmon process telemetry to a centralized SIEM for correlation.
  • Track service account activity for the pgAdmin process and alert on any deviation from expected pg_dump or pg_restore invocations.

How to Mitigate CVE-2025-12763

Immediate Actions Required

  • Restrict access to pgAdmin 4 web interfaces to trusted administrative networks until a patched release is deployed.
  • Audit pgAdmin user accounts and revoke backup and restore privileges from non-administrative roles.
  • Run the pgAdmin service under a least-privilege Windows account to limit the impact of successful command injection.

Patch Information

At the time of NVD publication, the issue is tracked in the upstream pgAdmin GitHub repository. Administrators should monitor the pgAdmin project for a fixed release that replaces shell=True subprocess invocations with safer argument-list calls and upgrade as soon as a patched version is available.

Workarounds

  • Use pgAdmin 4 on Linux or macOS hosts where the shell=True Windows-specific exploitation path does not apply, where operationally feasible.
  • Disable or block access to the backup and restore endpoints via reverse proxy rules until the application is upgraded.
  • Enforce strict input validation at a web application firewall to reject file path parameters containing shell metacharacters such as &, |, ;, and backticks.

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPgadmin

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Vendor Resources
  • GitHub Issue Report
  • 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-12762: Pgadmin 4 RCE Vulnerability
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