OpenSpug Critical RCE: Unauth OS Command Injection in File Transfer Affects v3.0-4.0.1 With No Fix
A critical remote code execution vulnerability in OpenSpug's file transfer module allows unauthenticated attackers to inject operating system commands.
Key points
- NVD rates CVE-2026-108540 as critical with a CVSS score of 9.4
- The flaw affects OpenSpug versions 3.0 through 3.4.0 and 4.0.1
- Public exploits are available and the vendor has not issued a fix
A critical security vulnerability in the OpenSpug Spug platform allows remote attackers to execute arbitrary operating system commands. The National Vulnerability Database (NVD) assigned CVE-2026-108540 a CVSS score of 9.4, classifying it as critical. The flaw resides within the File Transfer component, specifically impacting an unknown function located at the /exec/transfer endpoint. Researchers have published proof-of-concept exploits, meaning the vulnerability is actively exploitable in the wild.
Root cause
The underlying issue stems from improper input validation within the file transfer mechanism. According to the NVD record, the weakness maps to CWE-78 and CWE-77, which denote OS command injection flaws. The application fails to sanitize user-supplied data before passing it to system shell commands. This lack of sanitization enables an attacker to break out of the intended command context and append malicious instructions. The vulnerability exists in versions up to 3.4.0 and 4.0.1, indicating a persistent design flaw across multiple release cycles.
Attack path
Attackers can launch this exploit remotely without requiring prior authentication to the OpenSpug instance. By sending a crafted request to the /exec/transfer endpoint, an adversary can trigger the command injection flaw. The NVD notes that the exploit code has been published and may be used by threat actors. Once executed, the injected commands run with the privileges of the service account hosting OpenSpug. This access allows attackers to read sensitive files, install backdoors, or pivot further into the internal network infrastructure.
Affected versions
The vulnerability impacts a wide range of OpenSpug Spug releases. The NVD explicitly lists the following versions as affected:
- OpenSpug Spug 3.0
- OpenSpug Spug 3.1
- OpenSpug Spug 3.2
- OpenSpug Spug 3.3
The record states the flaw exists in versions up to 3.4.0 and 4.0.1. Organizations running any of these iterations are exposed to the risk of remote code execution. There is no indication that later versions beyond 4.0.1 have resolved this specific issue, though the primary advisory focuses on the listed range.
Mitigation
No official patch or security update has been confirmed by the vendor. The NVD record states that the vendor was contacted early about this disclosure but did not respond in any way. Without a vendor fix, administrators must rely on compensating controls. Network segmentation is the most effective immediate defense. Restricting access to the OpenSpug interface to trusted internal IP addresses can reduce the attack surface. Disabling the File Transfer component entirely may also neutralize the risk if the feature is not strictly required for operations.
Background: Command injection
Command injection occurs when an application passes untrusted input directly to a system shell. This allows attackers to execute arbitrary commands on the server. You prevent it by avoiding shell execution entirely or by strictly validating and escaping all user-supplied input before processing.
Read the full guide: Command Injection: How It Works and How to Stop It
What to do and how to stay safe: OpenSpug
- Audit your network firewall rules to block external access to the OpenSpug /exec/transfer endpoint
- Monitor server logs for unusual command execution patterns or unexpected outbound connections
- Isolate OpenSpug instances in a restricted network segment to limit lateral movement potential
- Review user permissions to ensure only authorized personnel can interact with the file transfer module
Step-by-step guide: Attack Surface Management: 6 Common Misreadings and Correct Views
General security guidance from the NetSec Observer newsroom. It is not confirmed advice from the organisations named in this story.
Frequently asked questions
Is there a patch available for CVE-2026-108540?
No, the vendor has not responded to disclosure attempts and no fix has been confirmed yet.
Which OpenSpug versions are vulnerable to this command injection flaw?
Versions 3.0, 3.1, 3.2, 3.3, and up to 3.4.0 and 4.0.1 are affected.
Can attackers exploit this vulnerability without logging in?
Yes, the attack can be launched remotely and does not require authentication.




