CVE-2022-25916: mt7688-wiscan is vulnerable to Command Injection due to improper input sanitization
7.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.28645%
CWE
Published
2/1/2023
Updated
2/8/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| mt7688-wiscan | npm | < 0.8.3 | 0.8.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the 'wiscan.scan' function in index.js where user-supplied 'intf' parameter is unsafely interpolated into an exec() command. The GitHub patch adds a regex check to validate() 'intf' starts with alphanumeric characters, confirming the parameter was previously vulnerable to command injection. The CVE description explicitly references improper input sanitization in this function, and the commit diff shows security-focused validation was added to this exact location.