CVE-2026-58652: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in openwrt luci-app-travelmate
luci-app-travelmate (and the travelmate package) contain a privilege-escalation flaw: a LuCI/rpcd session holding the luci-app-travelmate write ACL is granted config-wide UCI write access to the travelmate configuration. While the LuCI UI restricts the auto-login script picker to /etc/travelmate/*.login, this is only a frontend restriction. The backend travelmate service (running as root) reads the raw UCI 'script' and 'script_args' values and executes the configured path when the captive-portal auto-login branch (f_check() in travelmate-functions.sh) is reached. An attacker with delegated write permissions can set script to /bin/sh and script_args to attacker-controlled arguments, resulting in arbitrary command execution as root. Confirmed in luci-app-travelmate/travelmate 2.4.5-r3; the sink is still present in travelmate 2.4.6-1 and no patched version is known.
AI Analysis
Technical Summary
The luci-app-travelmate package in OpenWrt contains a privilege escalation vulnerability due to improper neutralization of special elements in OS command execution. A session with delegated write ACL to luci-app-travelmate can write arbitrary values to the 'script' and 'script_args' UCI configuration keys. Although the frontend UI restricts the script picker to a safe directory, this restriction is not enforced on the backend. The travelmate service, running as root, executes the configured script path when the captive-portal auto-login function is triggered. By setting 'script' to /bin/sh and controlling 'script_args', an attacker can execute arbitrary commands as root. This issue is confirmed in luci-app-travelmate 2.4.5-r3 and remains in 2.4.6-1. No official fix or patch is currently known.
Potential Impact
An attacker with delegated write permissions to luci-app-travelmate can escalate privileges to root by injecting arbitrary OS commands. This allows full control over the device running the travelmate service, potentially compromising system integrity and confidentiality. The vulnerability is rated high severity with a CVSS 4.0 score of 7.7, reflecting the network attack vector, required privileges, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict write access to luci-app-travelmate configuration to trusted users only. Avoid delegating write permissions to untrusted sessions. Monitor for unusual configuration changes to the 'script' and 'script_args' UCI keys. Consider disabling or restricting the travelmate auto-login feature if possible.
CVE-2026-58652: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in openwrt luci-app-travelmate
Description
luci-app-travelmate (and the travelmate package) contain a privilege-escalation flaw: a LuCI/rpcd session holding the luci-app-travelmate write ACL is granted config-wide UCI write access to the travelmate configuration. While the LuCI UI restricts the auto-login script picker to /etc/travelmate/*.login, this is only a frontend restriction. The backend travelmate service (running as root) reads the raw UCI 'script' and 'script_args' values and executes the configured path when the captive-portal auto-login branch (f_check() in travelmate-functions.sh) is reached. An attacker with delegated write permissions can set script to /bin/sh and script_args to attacker-controlled arguments, resulting in arbitrary command execution as root. Confirmed in luci-app-travelmate/travelmate 2.4.5-r3; the sink is still present in travelmate 2.4.6-1 and no patched version is known.
CVSS v4.0
Score 7.7high
Affected software
pkg:github/openwrt/luci-app-travelmateRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The luci-app-travelmate package in OpenWrt contains a privilege escalation vulnerability due to improper neutralization of special elements in OS command execution. A session with delegated write ACL to luci-app-travelmate can write arbitrary values to the 'script' and 'script_args' UCI configuration keys. Although the frontend UI restricts the script picker to a safe directory, this restriction is not enforced on the backend. The travelmate service, running as root, executes the configured script path when the captive-portal auto-login function is triggered. By setting 'script' to /bin/sh and controlling 'script_args', an attacker can execute arbitrary commands as root. This issue is confirmed in luci-app-travelmate 2.4.5-r3 and remains in 2.4.6-1. No official fix or patch is currently known.
Potential Impact
An attacker with delegated write permissions to luci-app-travelmate can escalate privileges to root by injecting arbitrary OS commands. This allows full control over the device running the travelmate service, potentially compromising system integrity and confidentiality. The vulnerability is rated high severity with a CVSS 4.0 score of 7.7, reflecting the network attack vector, required privileges, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict write access to luci-app-travelmate configuration to trusted users only. Avoid delegating write permissions to untrusted sessions. Monitor for unusual configuration changes to the 'script' and 'script_args' UCI keys. Consider disabling or restricting the travelmate auto-login feature if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-01T21:54:37.945Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a46626e27e9c797195ac137
Added to database: 07/02/2026, 13:06:54 UTC
Last enriched: 07/02/2026, 13:21:32 UTC
Last updated: 08/14/2026, 12:41:11 UTC
Views: 58
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.