A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Read More
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-2026-7815

CVE-2026-7815: pgAdmin 4 SQL Injection Vulnerability

CVE-2026-7815 is a SQL injection flaw in pgAdmin 4 Maintenance Tool that allows authenticated users to execute arbitrary SQL and escalate to OS command execution. This article covers technical details, affected versions, and mitigation.

Published: May 18, 2026

CVE-2026-7815 Overview

CVE-2026-7815 is a SQL injection vulnerability [CWE-89] in the pgAdmin 4 Maintenance Tool. The flaw exists in how the tool builds VACUUM, ANALYZE, and REINDEX commands that are passed to psql --command. Four user-supplied JSON fields (buffer_usage_limit, vacuum_parallel, vacuum_index_cleanup, and reindex_tablespace) are concatenated directly into the rendered command without validation.

An authenticated user holding the tools_maintenance permission can break out of the option syntax and execute arbitrary SQL on the connected PostgreSQL server. The injected SQL can invoke COPY ... TO PROGRAM to escalate to operating system command execution on the database host. The vulnerability affects pgAdmin 4 versions before 9.15.

Critical Impact

Authenticated attackers can execute arbitrary SQL and pivot to OS command execution on the PostgreSQL host via COPY ... TO PROGRAM.

Affected Products

  • pgAdmin 4 versions prior to 9.15
  • pgAdmin 4 Maintenance Tool component
  • PostgreSQL instances connected through vulnerable pgAdmin 4 deployments

Discovery Timeline

  • 2026-05-11 - CVE-2026-7815 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-7815

Vulnerability Analysis

The pgAdmin 4 Maintenance Tool generates PostgreSQL maintenance commands from JSON parameters submitted by authenticated users. The server-side rendering logic concatenates four user-controlled values directly into the command string before invoking psql --command. No input validation or allow-listing is performed on buffer_usage_limit, vacuum_parallel, vacuum_index_cleanup, or reindex_tablespace prior to the fix.

An attacker with the tools_maintenance permission can inject SQL syntax through any of these four fields. The injected payload exits the intended option context and runs as part of the maintenance command executed against the target database. Because the resulting SQL runs with the privileges of the connected PostgreSQL role, attackers can leverage COPY ... TO PROGRAM to spawn arbitrary processes on the database server. This converts a database-layer flaw into full operating system command execution on the PostgreSQL host.

Root Cause

The root cause is improper neutralization of special elements used in an SQL command [CWE-89]. The Maintenance Tool relied on manual quoting for reindex_tablespace and accepted the other three fields without sanitization. The fix introduces server-side allow-listing for all four fields and replaces manual quoting of reindex_tablespace with the qtIdent filter, which safely quotes PostgreSQL identifiers.

Attack Vector

Exploitation requires an authenticated pgAdmin 4 session with the tools_maintenance permission and network access to the pgAdmin web interface. The attacker submits a crafted Maintenance Tool request containing malicious values in one of the four affected JSON fields. The rendered command is passed to psql --command, which executes the injected SQL against the connected PostgreSQL server. Follow-on use of COPY ... TO PROGRAM yields command execution on the database host. See the GitHub Issue Report for additional technical detail.

Detection Methods for CVE-2026-7815

Indicators of Compromise

  • Unexpected psql --command invocations originating from the pgAdmin 4 process containing suspicious tokens in VACUUM, ANALYZE, or REINDEX option lists.
  • PostgreSQL server logs containing COPY ... TO PROGRAM statements issued from Maintenance Tool sessions.
  • Child processes spawned by the PostgreSQL server account immediately following a Maintenance Tool action.

Detection Strategies

  • Audit pgAdmin 4 application logs for Maintenance Tool requests with non-standard values in buffer_usage_limit, vacuum_parallel, vacuum_index_cleanup, or reindex_tablespace.
  • Enable PostgreSQL log_statement = 'all' on hosts running pgAdmin 4 and alert on COPY ... TO PROGRAM usage.
  • Correlate web access logs to the pgAdmin Maintenance Tool endpoint with subsequent process creation events on the PostgreSQL host.

Monitoring Recommendations

  • Monitor for new child processes of the PostgreSQL service account, especially shells, interpreters, or network utilities.
  • Track authentication events for accounts granted the tools_maintenance permission and review their activity baselines.
  • Forward pgAdmin 4 and PostgreSQL logs to a centralized SIEM and build identifications around the patterns above.

How to Mitigate CVE-2026-7815

Immediate Actions Required

  • Upgrade pgAdmin 4 to version 9.15 or later on all servers and workstations.
  • Restrict the tools_maintenance permission to a minimal set of trusted administrators.
  • Review PostgreSQL logs for prior use of COPY ... TO PROGRAM originating from Maintenance Tool sessions.
  • Rotate credentials for any PostgreSQL roles configured in pgAdmin if compromise is suspected.

Patch Information

The pgAdmin project fixed CVE-2026-7815 in pgAdmin 4 version 9.15. The patch introduces server-side allow-listing of buffer_usage_limit, vacuum_parallel, vacuum_index_cleanup, and reindex_tablespace. It also switches reindex_tablespace from manual quoting to the qtIdent identifier-quoting filter. Refer to the GitHub Issue Report for fix details.

Workarounds

  • Revoke the tools_maintenance permission from non-administrator pgAdmin users until patching is complete.
  • Place pgAdmin 4 behind network segmentation that restricts access to a small administrator subnet.
  • Run PostgreSQL under an unprivileged service account to limit impact of COPY ... TO PROGRAM abuse.
  • Disable interactive shells for the PostgreSQL service account to constrain post-exploitation pivoting.
bash
# Upgrade pgAdmin 4 to a fixed release (example for pip-based installs)
pip install --upgrade "pgadmin4>=9.15"

# Verify the installed version
pgadmin4 --version

# In the pgAdmin UI: Management > Roles
# Remove the tools_maintenance permission from non-admin roles

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechPgadmin

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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-89
  • Technical References
  • GitHub Issue Report
  • Related CVEs
  • CVE-2026-7817: pgAdmin 4 LFI and SSRF Vulnerability

  • CVE-2026-7816: pgAdmin 4 RCE Vulnerability Explained

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

  • CVE-2026-7819: pgAdmin 4 Path Traversal 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