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

CVE-2026-7817: pgAdmin 4 LFI and SSRF Vulnerability

CVE-2026-7817 is a local file inclusion and server-side request forgery vulnerability in pgAdmin 4 that allows authenticated users to read server files and make internal requests. This post covers technical details, versions before 9.15, impact, and mitigation steps.

Published: May 18, 2026

CVE-2026-7817 Overview

CVE-2026-7817 is a combined Local File Inclusion (LFI) and Server-Side Request Forgery (SSRF) vulnerability affecting pgAdmin 4 versions before 9.15. The flaw resides in the LLM API configuration endpoints, where user-supplied api_key_file and api_url preferences were passed directly to LLM provider clients without validation. An authenticated attacker can read arbitrary files readable by the pgAdmin process or coerce the server into issuing requests to internal targets such as cloud metadata services. The issue is tracked under [CWE-552: Files or Directories Accessible to External Parties].

Critical Impact

Authenticated users can exfiltrate arbitrary server-side files and pivot to internal network services, including cloud metadata endpoints at 169.254.169.254.

Affected Products

  • pgAdmin 4 versions prior to 9.15
  • Server mode deployments exposing LLM configuration preferences
  • Desktop mode deployments where the pgAdmin process has access to sensitive local files

Discovery Timeline

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

Technical Details for CVE-2026-7817

Vulnerability Analysis

The vulnerability stems from unvalidated user input reaching downstream LLM provider client libraries inside pgAdmin 4. Two preference fields control LLM integration behavior: api_key_file and api_url. Neither value was sanitized or constrained before being consumed by the chat path and the model-list endpoints.

For the LFI vector, api_key_file accepted any filesystem path. The pgAdmin process opened and read whichever file was specified, returning content through the LLM key-loading routine. This allowed an authenticated user to read files such as configuration files, credentials, and private keys that the pgAdmin service account could access.

For the SSRF vector, api_url accepted arbitrary URLs and forwarded outbound HTTP requests through the LLM client. Attackers could redirect requests to internal-only services or cloud instance metadata endpoints to harvest temporary credentials.

Root Cause

The root cause is missing input validation on two preference fields that flow into privileged file and network operations. The application trusted authenticated user input to point at arbitrary filesystem paths and network destinations without any allow-list, scheme filter, or path containment check.

Attack Vector

Exploitation requires an authenticated pgAdmin session. The attacker updates the LLM preferences to point api_key_file at a sensitive file such as /etc/passwd, application config files, or SSH keys, then triggers the chat or model-list endpoint to force a read. For SSRF, the attacker sets api_url to an internal IP or cloud metadata URL and invokes the same endpoints to coerce pgAdmin into issuing the outbound request. See the pgAdmin GitHub Issue Report for additional technical context.

Detection Methods for CVE-2026-7817

Indicators of Compromise

  • pgAdmin preference updates setting api_key_file to paths outside the user's private storage or home directory
  • Outbound HTTP requests from pgAdmin to 169.254.169.254, 127.0.0.1, or RFC1918 addresses not previously associated with LLM traffic
  • Anomalous reads of /etc/passwd, ~/.ssh/, or pgAdmin configuration files by the pgAdmin service account
  • Repeated invocations of the chat path or model-list endpoints following preference modifications

Detection Strategies

  • Audit pgAdmin application logs for changes to api_key_file and api_url preference values
  • Inspect process-level file access telemetry for the pgAdmin user reading files outside expected directories
  • Correlate preference modification events with subsequent calls to LLM-related endpoints within short time windows
  • Monitor egress traffic from pgAdmin hosts for connections to cloud metadata IPs and internal management interfaces

Monitoring Recommendations

  • Enable verbose logging on pgAdmin LLM endpoints to capture full request and preference state
  • Forward pgAdmin host telemetry, including file access and network connection events, to a central SIEM or data lake
  • Establish a baseline of expected outbound destinations from pgAdmin and alert on deviations
  • Track authenticated session activity for users who modify LLM configuration without prior history

How to Mitigate CVE-2026-7817

Immediate Actions Required

  • Upgrade pgAdmin 4 to version 9.15 or later, which restricts api_key_file paths and enforces an allow-list for api_url
  • Review existing user preferences for unexpected api_key_file or api_url values and reset them
  • Restrict pgAdmin process privileges so it cannot read sensitive system files or reach cloud metadata services
  • Audit authentication logs for unauthorized account creation or password resets preceding the disclosure window

Patch Information

The fix in pgAdmin 4 version 9.15 restricts api_key_file to the user's private storage in server mode or the home directory in desktop mode. It enforces a printable-ASCII shape on the key and applies a 1024-byte read cap. The patch also gates api_url against the configurable allow-list config.ALLOWED_LLM_API_URLS at every entry point. Refer to the pgAdmin GitHub Issue Report for fix details.

Workarounds

  • Disable LLM integration features in pgAdmin until the upgrade is applied
  • Apply egress firewall rules blocking pgAdmin hosts from reaching 169.254.169.254 and other internal-only networks
  • Run pgAdmin under a dedicated low-privilege account with minimal filesystem read access
  • Restrict pgAdmin access to trusted users only and enforce multi-factor authentication on accounts
bash
# Configuration example: define an allow-list for LLM API URLs in config_local.py
ALLOWED_LLM_API_URLS = [
    "https://api.openai.com",
    "https://api.anthropic.com"
]

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechPgadmin

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/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
  • AvailabilityNone
  • CWE References
  • CWE-552
  • Technical References
  • GitHub Issue Report
  • Related CVEs
  • CVE-2026-7815: pgAdmin 4 SQL Injection 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