CVE-2026-58000: luci-proto-openvpn Command Injection Vulnerability (CVSS 8.8)
A command injection vulnerability exists in luci-proto-openvpn versions up to 0.11.1 that allows authenticated LuCI users with OpenVPN configuration access to execute arbitrary commands with root privileges. The vulnerability stems from improper handling of the cl_meta parameter in the generateKey ubus method, where user input is directly interpolated into a shell command without sanitization. An attacker with valid LuCI credentials can exploit this to gain complete control over the affected system.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 8.8 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-78
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-29 / 2026-07-14
NVD description (verbatim)
luci-proto-openvpn through 0.11.1, fixed in commit e4ff45e, contains a command injection vulnerability in the generateKey ubus method where the cl_meta parameter is interpolated into a shell command without proper escaping or quoting. An authenticated LuCI user with OpenVPN protocol configuration access can inject arbitrary shell metacharacters into cl_meta to execute commands as root via the popen function.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-58000 is a command injection flaw in the luci-proto-openvpn generateKey ubus method. The cl_meta parameter is passed unsanitized into a shell command executed via popen, enabling OS command injection. The vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command). The vulnerability was fixed in commit e4ff45e. The CVSS 3.1 vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects network accessibility, low complexity, low privilege requirements, and high impact across confidentiality, integrity, and availability.
Business impact
An authenticated attacker exploiting this vulnerability can achieve remote code execution as root on systems running vulnerable luci-proto-openvpn versions. This enables complete system compromise, including data exfiltration, malware installation, lateral movement, and denial of service. Organizations relying on OpenVPN configuration through LuCI are at risk of infrastructure compromise if administrative credentials are exposed or if internal threat actors have LuCI access.
Affected systems
luci-proto-openvpn versions through 0.11.1 are vulnerable. The vulnerability requires the user to have authenticated LuCI access with OpenVPN protocol configuration privileges. Systems running OpenWrt or similar Linux distributions with LuCI and luci-proto-openvpn installed are affected. End-of-life or unsupported versions without patch availability may remain vulnerable.
Exploitability
This vulnerability has a low barrier to exploitation for authenticated users. An attacker with valid LuCI credentials can craft a malicious cl_meta parameter containing shell metacharacters (e.g., backticks, pipes, semicolons) to inject arbitrary commands. No user interaction is required beyond submitting the crafted request. Network accessibility and the requirement for prior authentication prevent opportunistic mass exploitation, but the vulnerability is trivial to weaponize once credentials are obtained.
Remediation
Upgrade luci-proto-openvpn to a version incorporating the fix from commit e4ff45e or later. Verify the specific patched version number in your vendor's release notes or advisory. Until patching is possible, restrict LuCI access to trusted users and networks, implement network segmentation to limit exposure of OpenVPN configuration interfaces, and monitor for suspicious parameter values in OpenVPN configuration logs.
Patch guidance
Determine your current luci-proto-openvpn version. Consult your distribution's package repository or vendor advisory to identify the fixed version that includes commit e4ff45e. Apply the update through your standard package management tools (opkg, apt, or equivalent). Verify the update by confirming the new version is active and by testing OpenVPN configuration functionality post-deployment. Organizations should prioritize patching systems with external network exposure or those handling sensitive VPN configurations.
Detection guidance
Monitor LuCI access logs and ubus method calls for requests to the generateKey method with suspicious cl_meta parameter values containing shell metacharacters or command substitution patterns. Look for unusual process spawning or privilege escalation events following OpenVPN configuration changes. Network-based detection should flag HTTP requests to LuCI endpoints with encoded shell syntax (e.g., %24, %28, %29, %7C) in parameters. Endpoint detection and response tools should alert on unexpected child processes spawned from OpenVPN or LuCI daemons with elevated privileges.
Why prioritize this
Despite the authenticated requirement, this vulnerability merits immediate prioritization due to its high CVSS score (8.8), exploitation simplicity, and potential for root-level code execution. Compromise of a VPN gateway or router running luci-proto-openvpn could enable widespread infrastructure access and lateral movement. The fix is available and integration is straightforward, making remediation a low-friction, high-impact action.
Risk score, explained
The CVSS 3.1 score of 8.8 (HIGH) reflects the combination of network-accessible attack vector, low attack complexity, and complete compromise of system confidentiality, integrity, and availability. The score is appropriately elevated despite the authentication requirement because LuCI access is often more widely distributed than other privileged interfaces, and compromised or shared credentials are common in real-world environments. The absence of user interaction and the direct path to root execution justify the high severity classification.
Frequently asked questions
Does this vulnerability require the attacker to have physical access to the device?
No. The vulnerability is network-accessible. An attacker with valid LuCI credentials (username and password) can exploit it remotely over the network.
Is this vulnerability currently being exploited in the wild?
This vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog, meaning active exploitation has not been publicly confirmed at the time of publication. However, the simplicity of exploitation means defensive action should not wait for evidence of active attacks.
If I restrict LuCI to trusted networks only, am I protected?
Network segmentation reduces risk by limiting exposure to potential attackers, but does not eliminate the vulnerability itself. Authenticated users within those trusted networks can still exploit it. Patching remains the definitive remediation.
What should I prioritize if I cannot patch immediately?
Prioritize patching systems with external network exposure first. For internal-only systems, implement strict access controls on LuCI authentication and monitor for suspicious OpenVPN configuration activity. Use your distribution's security advisories to understand patch availability timelines.
This analysis is based on the published CVE record and commit metadata available as of the publication date. Patch version numbers, availability timelines, and detailed vendor advisories should be verified directly with your distribution or vendor. This document does not constitute security advice specific to your environment; conduct your own risk assessment in consultation with your security team. SEC.co makes no warranty regarding the accuracy, completeness, or suitability of this intelligence for any particular purpose. Source: NVD (public-domain), retrieved 2026-08-08. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2025-41265HIGHWaterfall WF-500 TX Host OS Command Injection (CVSS 7.2)
- CVE-2025-41266HIGHWaterfall WF-500 TX Host Command Injection Vulnerability Analysis
- CVE-2025-41267HIGHWaterfall WF-500 TX Host Command Injection Vulnerability
- CVE-2025-41279HIGHOS Command Injection in Waterfall WF-500 RX Host Administration WebUI
- CVE-2025-41281HIGHWaterfall WF-500 OS Command Injection
- CVE-2025-66273HIGHQNAP Command Injection in QTS and QuTS hero
- CVE-2025-66279HIGHQNAP NAS Command Injection – Admin Authentication Required, HIGH Severity
- CVE-2025-69755HIGHNeterbit NW-431F Router RCE and Data Exposure Vulnerability