Skip to main content

Localgpt CVE-2026-5001

| EUVDEUVD-2026-16932 MEDIUM
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-03-28 VulDB GHSA-m73g-4qvw-9rwm
5.5
CVSS 4.0 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK

2 techniques across 2 tactics: Command and Control, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS 4.0 vector indicates moderate direct impact (VC:L, VI:L, VA:L on confidentiality, integrity, and availability) with EPSS probability marked as exploitable (E:P). However, unrestricted file upload on a web server carrying CVSS 6.9 and publicly available POC significantly understates real-world risk. The integrity impact (VI:L) from arbitrary file placement combined with the application's AI/ML nature suggests potential for injection of malicious models, prompt injection payloads, or backdoors. Given AV:N/PR:N/UI:N baseline, any internet-exposed instance is immediately vulnerable with no authentication barrier. The vendor's non-response to early disclosure and rolling-release model mean no coordinated fix timeline exists. This is a high-priority vulnerability for any deployed localGPT instance despite the moderate CVSS score, particularly in production environments processing sensitive data or connected to external systems.

Exploit ScenarioDerived

An attacker probes an internet-exposed localGPT instance and discovers the unsecured do_POST endpoint. Using the publicly available exploit (GitHub CVEP issue #7), the attacker crafts an HTTP POST request with a malicious .py file or model checkpoint containing backdoor code. The file is uploaded without authentication or validation, placed directly in the application's file path. Upon application restart or model loading, the malicious payload executes with the privileges of the localGPT process, potentially granting the attacker code execution, data theft, or lateral movement into the hosting environment.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 28, 2026

Unrestricted file upload in PromtEngineer localGPT allows remote attackers to upload arbitrary files via the do_POST function in backend/server.py, enabling potential remote code execution or system compromise. The vulnerability affects all versions up to commit 4d41c7d1713b16b216d8e062e51a5dd88b20b054, impacts unauthenticated remote users, and publicly available exploit code exists. The vendor has not responded to early disclosure attempts, leaving the product unpatched.

RemediationAI

No vendor-released patch with a specific version tag has been identified at time of analysis. Users must update their localGPT installation to a commit after 4d41c7d1713b16b216d8e062e51a5dd88b20b054 from the main repository branch. Immediately implement input validation in the do_POST function to restrict uploaded file types to an allowlist (e.g., only .txt, .pdf for document ingestion), enforce strict file size limits, and store uploads outside the web root in a non-executable directory. Deploy rate limiting on the upload endpoint and consider requiring authentication for file uploads. Until upstream fixes are available, restrict network access to localGPT to trusted internal networks only via firewall rules or VPN. Monitor the official GitHub repository for security updates and rebuild deployments promptly when available. See VulDB references (https://vuldb.com/vuln/353888) and exploit details (https://github.com/August829/CVEP/issues/7) for additional context.

Affected VersionsENISA

localGPT 4d41c7d1713b16b216d8e062e51a5dd88b20b054

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability stems from CWE-434 (Unrestricted Upload of File with Dangerous Type), a fundamental input validation flaw in the HTTP POST handler within localGPT's backend/server.py module. The do_POST function fails to implement proper file type validation, size restrictions, or destination path sanitization for uploaded files. This allows attackers to bypass intended upload controls and place malicious files directly on the server filesystem. The product follows a rolling release strategy without traditional versioning, complicating remediation tracking across deployments. The attack vector is network-accessible (AV:N) with low complexity (AC:L), requiring no prior authentication (PR:N) or user interaction (UI:N), making exploitation trivial for any remote attacker.

Know when Localgpt gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
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

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 29, 2026 - 01:11 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
PoC Detected
Mar 30, 2026 - 13:26 vuln.today
Public exploit code
CVE Published
Mar 28, 2026 - 16:00 nvd
MEDIUM 6.9

DescriptionCVE.org

A flaw has been found in PromtEngineer localGPT up to 4d41c7d1713b16b216d8e062e51a5dd88b20b054. The affected element is the function do_POST of the file backend/server.py. This manipulation causes unrestricted upload. The attack is possible to be carried out remotely. The exploit has been published and may be used. This product adopts a rolling release strategy to maintain continuous delivery. Therefore, version details for affected or updated releases cannot be specified. The vendor was contacted early about this disclosure but did not respond in any way.

Executive ViewAI

Why It Matters

Organizations using PromtEngineer localGPT should be aware of notable risk from CVE-2026-5001, a unrestricted file upload vulnerability rated CVSS 6.9. This could allow unauthorized file access. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Moderate
Compensating Controls

Apply vendor patch. If patching is delayed: restrict file access via WAF, implement allowlists.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Related Vulnerabilities in PromtEngineer localGPT Multiple Flaws

View all 3

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy