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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 1.8
- **CVSS:** 1.8 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: High; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.39% (percentile 25, 2026-11-26)
- **CWE:** CWE-187, CWE-74, CWE-269
- **Published:** 2026-03-19T22:36:04.507Z
- **Modified:** 2026-06-17T10:33:04.280Z

## Who should check

- Anyone running openwrt \< 24.10.6

## 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.

## Affected and fixed versions

- openwrt: \< 24.10.6 (cvelist)

## Mitigation

- Upgrade openwrt to 24.10.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-30874. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-30874.md
Affected: openwrt < 24.10.6
Fixed in: openwrt 24.10.6

Steps:
1. Search this machine and project for openwrt: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-30874 being exploited?

There is no confirmed exploitation: CVE-2026-30874 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.39% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-30874?

Low: CVSS 1.8 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-30874?

openwrt \< 24.10.6.

### Is there a fix for CVE-2026-30874?

Yes. Fixed in openwrt 24.10.6. Upgrade openwrt to 24.10.6 or later.

### How do I check if I'm affected by CVE-2026-30874?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-30874>

HTML: <https://flawdb.com/CVE-2026-30874> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-30874>
