OpenWRT up to 24.10.5 Environment Variable /etc/hotplug.d PATH partial string comparison

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.9$0-$5k0.00

Summaryinfo

A vulnerability described as problematic has been identified in OpenWRT up to 24.10.5. Impacted is an unknown function of the file /etc/hotplug.d of the component Environment Variable Handler. Such manipulation of the argument PATH leads to partial string comparison. This vulnerability is listed as CVE-2026-30874. The attack must be carried out locally. There is no available exploit. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability was found in OpenWRT up to 24.10.5. It has been rated as problematic. Affected by this issue is an unknown code block of the file /etc/hotplug.d of the component Environment Variable Handler. The manipulation of the argument PATH with an unknown input leads to a partial string comparison vulnerability. Using CWE to declare the problem leads to CWE-187. The product performs a comparison that only examines a portion of a factor before determining whether there is a match, such as a substring, leading to resultant weaknesses. Impacted is confidentiality, integrity, and availability. CVE summarizes:

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.

The advisory is available at github.com. This vulnerability is handled as CVE-2026-30874 since 03/06/2026. The exploitation is known to be easy. Local access is required to approach this attack. Additional levels of successful authentication are necessary for exploitation. Technical details are known, but there is no available exploit.

Upgrading to version 24.10.6 eliminates this vulnerability. Applying the patch e08cdc8562f55b9ac228a21f3f7605a18c522b81 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Productinfo

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒

CVSSv3info

VulDB Meta Base Score: 6.0
VulDB Meta Temp Score: 5.9

VulDB Base Score: 4.2
VulDB Temp Score: 4.0
VulDB Vector: 🔒
VulDB Reliability: 🔍

NVD Base Score: 7.8
NVD Vector: 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Partial string comparison
CWE: CWE-187 / CWE-697
CAPEC: 🔒
ATT&CK: 🔒

Physical: Partially
Local: Yes
Remote: No

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: OpenWRT 24.10.6
Patch: e08cdc8562f55b9ac228a21f3f7605a18c522b81

Timelineinfo

03/06/2026 CVE reserved
03/20/2026 +14 days Advisory disclosed
03/20/2026 +0 days VulDB entry created
03/25/2026 +5 days VulDB entry last update

Sourcesinfo

Product: github.com

Advisory: GHSA-jw28-hxcm-j934
Status: Confirmed

CVE: CVE-2026-30874 (🔒)
GCVE (CVE): GCVE-0-2026-30874
GCVE (VulDB): GCVE-100-351818

Entryinfo

Created: 03/20/2026 07:22
Updated: 03/25/2026 05:41
Changes: 03/20/2026 07:22 (70), 03/23/2026 00:28 (1), 03/25/2026 05:41 (11)
Complete: 🔍
Cache ID: 216::103

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!