GHSA-jw28-hxcm-j934 / CVE-2026-30874: procd: Command execution via PATH environment variable filter bypass
- Published:
- Fetched:
- Updated:
- Affects:
- openwrt OpenWrt
https://github.com/openwrt/openwrt/security/advisories/GHSA-jw28-hxcm-j934 ↗
procd: Command execution via PATH environment variable filter bypass procd executes scripts located in /etc/hotplug.d when certain events happen on a system, and can be invoked via the call ubus method. The hotplug_call function is responsible for handling these invocations and will perform environment variable filtering and processing during execution. One of the environment variables that is filtered out is the PATH variable, but because of the use of strcmp rather than strncmp, the variable is not excluded. Instead of comparing the first four characters of the environment variable to PATH, the full string is compared, and the variable is therefore not skipped. As such, it may be possible to specify an arbitrary PATH variable in order to perform privilege escalation. ### References Fix: http://github.com/openwrt/procd/commit/e08cdc8562f55b9ac228a21f3f7605a18c522b81 Affected packages: :OpenWrt Patched: OpenWrt 24.10.6