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-2026-5002

CVE-2026-5002: localGPT RCE Vulnerability via Injection

CVE-2026-5002 is a remote code execution flaw in PromptEngineer localGPT affecting the LLM Prompt Handler component. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published: April 2, 2026

CVE-2026-5002 Overview

A prompt injection vulnerability has been identified in PromtEngineer localGPT, affecting the _route_using_overviews function within the backend/server.py file of the LLM Prompt Handler component. This vulnerability allows remote attackers to manipulate LLM prompts through injection techniques, potentially leading to unauthorized information disclosure, data manipulation, or unintended system behavior.

The vulnerability exists in localGPT versions up to commit 4d41c7d1713b16b216d8e062e51a5dd88b20b054. Since localGPT utilizes a rolling release system for continuous delivery, specific version numbers for affected or updated releases are not available. The exploit has been publicly disclosed, and the vendor was contacted but did not respond to the disclosure.

Critical Impact

Remote attackers can inject malicious prompts to manipulate LLM behavior, potentially leading to information leakage, unauthorized actions, or bypassing intended application controls through the network-accessible prompt handler.

Affected Products

  • PromtEngineer localGPT (up to commit 4d41c7d1713b16b216d8e062e51a5dd88b20b054)
  • localGPT LLM Prompt Handler component (backend/server.py)
  • localGPT installations with exposed network interfaces

Discovery Timeline

  • 2026-03-28 - CVE-2026-5002 published to NVD
  • 2026-03-30 - Last updated in NVD database

Technical Details for CVE-2026-5002

Vulnerability Analysis

This vulnerability is classified as CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), commonly known as an Injection vulnerability. In the context of LLM applications, this manifests as a prompt injection attack where user-controlled input is improperly sanitized before being passed to the language model.

The vulnerable function _route_using_overviews in the LLM Prompt Handler fails to adequately validate or sanitize input before incorporating it into prompts sent to the underlying language model. This allows attackers to craft malicious input that alters the intended behavior of the LLM, potentially bypassing security controls, extracting sensitive information from the model's context, or causing the application to perform unintended actions.

The attack is exploitable remotely over the network without requiring authentication, making any exposed localGPT instance a potential target.

Root Cause

The root cause of this vulnerability is insufficient input validation and lack of proper prompt sanitization in the _route_using_overviews function within backend/server.py. The function processes user input and incorporates it into LLM prompts without implementing adequate controls to prevent injection attacks. This allows specially crafted input to escape the intended prompt context and inject arbitrary instructions to the language model.

Attack Vector

The attack vector is network-based, requiring no user interaction or authentication. An attacker can send specially crafted HTTP requests to the localGPT server that contain malicious prompt fragments. These fragments are processed by the _route_using_overviews function and passed to the LLM, where they can:

  1. Override system instructions intended to control LLM behavior
  2. Extract sensitive information that may exist in the model's context
  3. Cause the LLM to generate harmful or misleading content
  4. Bypass application-level access controls implemented through prompts

The vulnerability is particularly concerning for deployments where localGPT interfaces with sensitive data or has access to additional system capabilities through function calling or tool use features.

Detection Methods for CVE-2026-5002

Indicators of Compromise

  • Unusual or malformed requests to the localGPT server endpoint containing prompt injection patterns
  • LLM responses that deviate significantly from expected application behavior
  • Requests containing known prompt injection phrases such as "ignore previous instructions" or "disregard above"
  • Abnormal data exfiltration patterns in LLM responses
  • Server logs showing repeated probing attempts against the prompt handler

Detection Strategies

  • Implement request logging and monitoring for the localGPT /api/ endpoints to identify suspicious input patterns
  • Deploy web application firewall (WAF) rules to detect common prompt injection signatures
  • Monitor LLM output for unexpected content patterns or policy violations
  • Use anomaly detection on request payloads targeting the prompt handler component
  • Implement input validation alerts for requests containing special characters or instruction-like patterns

Monitoring Recommendations

  • Enable verbose logging on the localGPT backend server to capture all incoming requests
  • Set up alerts for requests with unusually long or complex payloads to the prompt handler
  • Monitor network traffic for unexpected outbound connections from the localGPT server
  • Track LLM token usage patterns for anomalies that may indicate prompt manipulation
  • Review application logs regularly for evidence of attempted exploitation

How to Mitigate CVE-2026-5002

Immediate Actions Required

  • Restrict network access to the localGPT server to trusted IP addresses only
  • Implement authentication and authorization controls on all API endpoints
  • Update localGPT to the latest commit if a fix becomes available
  • Deploy input validation and sanitization on all user-supplied data before prompt construction
  • Consider taking affected instances offline until proper mitigations are in place

Patch Information

As of the last update, no official patch has been released by the vendor. The vendor was contacted regarding this vulnerability but did not respond. Users should monitor the PromtEngineer localGPT GitHub repository for updates and security patches.

For more information about this vulnerability, refer to the GitHub Issue Discussion and VulDB Vulnerability #353889.

Workarounds

  • Implement a reverse proxy with input filtering to sanitize requests before they reach the localGPT server
  • Add custom input validation in the application layer to reject requests containing known prompt injection patterns
  • Use network segmentation to limit access to the localGPT deployment to authorized users only
  • Implement rate limiting on API endpoints to slow down automated exploitation attempts
  • Consider deploying prompt injection detection libraries or middleware to filter malicious inputs
bash
# Configuration example - Network restriction using iptables
# Restrict access to localGPT server (default port 5110) to trusted IPs only
iptables -A INPUT -p tcp --dport 5110 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 5110 -j DROP

# Enable logging for dropped connections
iptables -A INPUT -p tcp --dport 5110 -j LOG --log-prefix "localGPT-blocked: "

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPromtengineer

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/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
  • AvailabilityLow
  • CWE References
  • CWE-74
  • Technical References
  • GitHub Issue Discussion

  • VulDB Submission #779122

  • VulDB Vulnerability #353889

  • VulDB CTI for #353889
  • Related CVEs
  • CVE-2026-5001: PromptEngineer localGPT RCE Vulnerability

  • CVE-2026-5003: localGPT Information Disclosure Flaw

  • CVE-2026-5000: localGPT Auth Bypass 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