CVE-2026-30874

Source
https://cve.org/CVERecord?id=CVE-2026-30874
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-30874.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-30874
Aliases
  • GHSA-jw28-hxcm-j934
Published
2026-03-19T22:36:04.507Z
Modified
2026-04-12T20:14:09.175845Z
Severity
  • 1.8 (Low) CVSS_V4 - 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 Calculator
Summary
OpenWrt procd PATH Environment Variable Filter Bypass via Incorrect String Comparison Leads to Privilege Escalation
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-187",
        "CWE-269",
        "CWE-74"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30874.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/openwrt/openwrt

Affected ranges

Type
GIT
Repo
https://github.com/openwrt/openwrt
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "24.10.6"
        }
    ]
}

Affected versions

Other
reboot
v24.*
v24.10.0
v24.10.0-rc1
v24.10.0-rc2
v24.10.0-rc3
v24.10.0-rc4
v24.10.0-rc5
v24.10.0-rc6
v24.10.0-rc7
v24.10.1
v24.10.2
v24.10.3
v24.10.4
v24.10.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-30874.json"

Git / github.com/openwrt/procd

Affected ranges

Type
GIT
Repo
https://github.com/openwrt/procd
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-30874.json"
vanir_signatures_modified
"2026-04-12T20:14:09Z"
vanir_signatures
[
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 2760.0,
            "function_hash": "319189113886299828512344801706561431128"
        },
        "source": "https://github.com/openwrt/procd/commit/e08cdc8562f55b9ac228a21f3f7605a18c522b81",
        "id": "CVE-2026-30874-7e53f686",
        "signature_type": "Function",
        "target": {
            "function": "hotplug_call",
            "file": "hotplug-dispatch.c"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "249331041476272418194147302126660477904",
                "122856848704705548293056057769416569062",
                "1374036774300617475868203354777821997",
                "290216757972811517672433524852206559399"
            ]
        },
        "source": "https://github.com/openwrt/procd/commit/e08cdc8562f55b9ac228a21f3f7605a18c522b81",
        "id": "CVE-2026-30874-81156395",
        "signature_type": "Line",
        "target": {
            "file": "hotplug-dispatch.c"
        }
    }
]