naddeoa/onion-oled-js · Security
Command Injection in onion-oled-js
- GHSA ID
- GHSA-rhwp-9vm9-547q
- CVE ID
- CVE-2021-23377
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
This affects all versions up to and including version 0.0.2 of package onion-oled-js. If attacker-controlled user input is given to the scroll function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.
CWEs
- CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')