# CVE-2026-30874: OpenWrt procd PATH Environment Variable Filter Bypass via Incorrect String Comparison Leads to Privilege Escalation

- Severity: Low 1.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-03-19T22:36:04.507Z
- Modified: 2026-06-17T10:33:04.280Z
- Weaknesses: CWE-74, CWE-187, CWE-269
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

OpenWrt Project is a Linux operating system targeting embedded devices. In versions prior to 24.10.6, a vulnerability in the hotplug_call function allows an attacker to bypass environment variable filtering and inject an arbitrary PATH variable, potentially leading to privilege escalation. The function is intended to filter out sensitive environment variables like PATH when executing hotplug scripts in /etc/hotplug.d, but a bug using strcmp instead of strncmp causes the filter to compare the full environment string (e.g., PATH=/some/value) against the literal "PATH", so the match always fails. As a result, the PATH variable is never excluded, enabling an attacker to control which binaries are executed by procd-invoked scripts running with elevated privileges. This issue has been fixed in version 24.10.6.

(As written by CVE List.)

## Affected

- openwrt openwrt: < 24.10.6; before 24.10.6

## Every score

- GitHub_M: CVSS:4.0 1.8 Low `CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/openwrt/openwrt/security/advisories/GHSA-jw28-hxcm-j934> (patch, vendor-advisory)
- <https://github.com/openwrt/procd/commit/e08cdc8562f55b9ac228a21f3f7605a18c522b81> (patch)

## Sources

- CVE List: [CVE-2026-30874](https://www.cve.org/CVERecord?id=CVE-2026-30874), CVE Terms of Use, modified 2026-03-20
- NVD: [CVE-2026-30874](https://nvd.nist.gov/vuln/detail/CVE-2026-30874), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-30874 · Whole record: https://cve.day/CVE-2026-30874.json · Rebuilt by cve.day 2026-11-25T22:59:16.229Z
