Skip to main content

OpenWrt LuCI EUVDEUVD-2026-40172

| CVE-2026-58000 HIGH
OS Command Injection (CWE-78)
2026-06-29 VulnCheck GHSA-833j-64r7-8r2r
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to LuCI with OpenVPN config rights
  2. Delivery
    Open OpenVPN protocol configuration
  3. Exploit
    Inject shell metacharacters into cl_meta
  4. Execution
    Invoke generateKey ubus method
  5. Persist
    popen() executes payload as root
  6. Impact
    Full device compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

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

Exploitation Conditions

Exploitation requires an authenticated LuCI session belonging to a user who has OpenVPN protocol configuration access, and the device must have the luci-proto-openvpn module installed and reachable. The concrete trigger is supplying shell metacharacters in the cl_meta parameter of the generateKey ubus method, which is interpolated unquoted into a popen() shell command. Limiting factors: it is not pre-authentication (PR:L) and not exploitable by an arbitrary unauthenticated network user, so it functions as escalation from a constrained LuCI/OpenVPN-admin role to root; it also depends on the OpenVPN protocol UI being present and the management interface being network-reachable to the attacker. No user interaction by a victim is required (UI:N).

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) describes a network-reachable, low-complexity attack requiring low privileges and no user interaction, yielding high impact across all three security properties - a credible priority for any exposed OpenWrt device. The key mitigating signal is PR:L: the attacker must already be an authenticated LuCI user holding OpenVPN configuration rights, so this is a privilege-escalation-to-root primitive rather than a pre-auth takeover. There is no CISA KEV listing and no public exploit identified at time of analysis, and no EPSS score was provided, so real-world exploitation probability cannot be quantified from the input; the absence of these signals should not be read as low risk given the trivial exploitation mechanics once authenticated. The principal real-world risk is environments where LuCI accounts are shared, weakly protected, or where a lower-trust admin role can reach OpenVPN settings, effectively collapsing the boundary between web-admin and root.

Exploit ScenarioDerived

A user with a low-privilege LuCI account that can edit OpenVPN protocol settings navigates to the OpenVPN configuration and submits a cl_meta value containing shell metacharacters (for example appending '; <command>' or '$(<command>)'). When generateKey is invoked over ubus, the injected payload is executed by popen() as root, giving the attacker a root shell or persistence on the router. No public proof-of-concept is identified at time of analysis, but the network attack vector and low complexity make weaponization straightforward for an authenticated user.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 1.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 29, 2026

Root command injection in OpenWrt's LuCI web interface (luci-proto-openvpn through 0.11.1) lets an authenticated user with OpenVPN protocol configuration access run arbitrary commands as root. The flaw lives in the generateKey ubus method, where the cl_meta parameter is passed unescaped into a popen() shell call. No public exploit has been identified at time of analysis, but a vendor advisory (GHSA-pm9w-522m-8rrh) and fix commit exist, and the CVSS 4.0 score of 8.7 reflects full confidentiality, integrity, and availability impact on the affected device.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the patch from commit e4ff45ecbc6ad212951815c8c99b2749fbd7de6b (https://github.com/openwrt/luci/commit/e4ff45ecbc6ad212951815c8c99b2749fbd7de6b) by updating luci-proto-openvpn to a build that includes it (post-0.11.1), per the vendor advisory at https://github.com/openwrt/luci/security/advisories/GHSA-pm9w-522m-8rrh. Where immediate patching is not possible, restrict who can authenticate to LuCI and specifically who holds OpenVPN protocol configuration rights, since the attack requires that access; remove or uninstall the luci-proto-openvpn package on devices that do not use OpenVPN as a managed protocol (trade-off: OpenVPN can no longer be configured through the web UI). Additionally, ensure the LuCI/uhttpd management interface is not exposed to untrusted networks or the WAN and is reachable only over trusted management VLANs or VPN (trade-off: remote browser administration becomes unavailable from outside that segment). Enforce strong, unique LuCI credentials to reduce the chance that a low-trust account is abused to reach the vulnerable method.

Affected VersionsENISA

luci 0 ≤0.11.1

Affected Packages

euvd luci no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

LuCI is the default Lua/JavaScript web administration framework shipped on OpenWrt embedded Linux devices, and luci-proto-openvpn is the LuCI sub-module that exposes OpenVPN as a configurable network protocol. The vulnerability is a classic CWE-78 OS command injection: the generateKey method exposed over ubus (OpenWrt's micro bus IPC layer) builds a shell command string and interpolates the attacker-controllable cl_meta parameter directly into it, then executes it via popen(). Because no shell escaping or quoting is applied, metacharacters such as ;, |, $(), or backticks break out of the intended command. ubus methods invoked from LuCI generally run with the privileges of the rpcd/uhttpd backend, which on OpenWrt is root, so successful injection yields root-level execution. The CPE cpe:2.3:a:openwrt:luci confirms the OpenWrt LuCI package as the affected component.

Know when Luci 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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Network-reachable ubus method, low complexity, requires an authenticated OpenVPN-config LuCI user (PR:L), and root command execution gives full C/I/A impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

OpenWrt's LuCI configuration interface contains a root command injection vulnerability (CVSS 8.7) allowing authenticated administrators to execute arbitrary commands with elevated privileges. For organizations using OpenWrt-based routers or edge devices, this creates a critical insider threat and network compromise risk, enabling lateral movement to connected systems. The vulnerability affects versions through 0.11.1 and requires immediate patching.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
1.4%
Top 31% exploitable
Prevalence
Medium
LuCI ships on OpenWrt routers widely, but OpenVPN proto module is optional
Data Quality
7 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 1.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Luci

View all
CVE-2026-61876 CRITICAL POC
9.4 Jul 12

Stored cross-site scripting in OpenWrt's LuCI web interface lets an adjacent-network attacker inject executable HTML/Jav

CVE-2019-12272 CRITICAL
9.8 May 23

In OpenWrt LuCI through 0.10, the endpoints admin/status/realtime/bandwidth_status and admin/status/realtime/wireless_st

CVE-2023-24181 MEDIUM POC
5.4 Apr 10

LuCI openwrt-22.03 branch git-22.361.69894-438c598 was discovered to contain a reflected cross-site scripting (XSS) vuln

CVE-2022-41435 MEDIUM POC
5.4 Nov 03

OpenWRT LuCI version git-22.140.66206-02913be was discovered to contain a stored cross-site scripting (XSS) vulnerabilit

CVE-2020-10871 MEDIUM POC
5.3 Mar 23

In OpenWrt LuCI git-20.x, remote unauthenticated attackers can retrieve the list of installed packages and services. Rat

CVE-2026-69096 HIGH
8.7 Aug 03

OS command injection in OpenWrt's luci-app-dockerman grants any authenticated user holding only the read ACL full root-l

CVE-2026-55897 HIGH
8.8 Sep 21

Authenticated delegated LuCI sessions that hold the luci-app-advanced-reboot read ACL can execute arbitrary commands as

CVE-2026-59260 HIGH
8.7 Jul 12

Privilege escalation to root in OpenWrt's luci-app-samba4 (LuCI web interface) lets authenticated delegated users invoke

CVE-2026-69095 HIGH
8.7 Aug 03

Unauthenticated path traversal in OpenWrt's luci-app-bmx7 package exposes arbitrary files on affected routers via the bm

CVE-2026-62184 HIGH
8.7 Jul 13

Ban-list poisoning in OpenWrt's luci-app-banip (banIP) before 1.8.10 lets an unauthenticated remote attacker steer the a

CVE-2026-61875 HIGH
8.7 Jul 12

Stored cross-site scripting in OpenWrt's luci-app-upnp lets an unauthenticated LAN client persist a JavaScript payload t

CVE-2026-32721 HIGH
8.6 Mar 19

A stored cross-site scripting (XSS) vulnerability exists in the OpenWrt LuCI web interface where malicious JavaScript co

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