# CVE-2021-23377: Arbitrary Command Injection

- Severity: Critical 9.8 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.97%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-18T18:40:20.548Z
- Modified: 2026-06-17T03:38:39.067Z
- Also known as: GHSA-rhwp-9vm9-547q
- Weaknesses: CWE-77, CWE-78
- Assigned by: snyk

## Description

This affects all versions 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.

(As written by CVE List.)

## Affected

- onion-oled-js: before unspecified
- onion-oled-js (npm): up to 0.0.2
- onion-oled-js_project onion-oled-js: no versions given

## Every score

- snyk: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-ONIONOLEDJS-1078808> (exploit, third-party-advisory, web)
- <https://github.com/naddeoa/onion-oled-js/blob/8a523645d2cc29130f98de661b742893773d760d/src/oled-exp.js%23L91> (broken-link)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23377> (advisory)
- <https://github.com/naddeoa/onion-oled-js> (package)
- <https://github.com/naddeoa/onion-oled-js/blob/8a523645d2cc29130f98de661b742893773d760d/src/oled-exp.js#23L91> (web)

## Sources

- CVE List: [CVE-2021-23377](https://www.cve.org/CVERecord?id=CVE-2021-23377), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-rhwp-9vm9-547q](https://github.com/advisories/GHSA-rhwp-9vm9-547q), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-23377](https://nvd.nist.gov/vuln/detail/CVE-2021-23377), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23377 · Whole record: https://cve.day/CVE-2021-23377.json · Rebuilt by cve.day 2026-11-25T22:58:00.850Z
