CVE-2021-23376
JavaScript vulnerability analysis and mitigation

Overview

CVE-2021-23376 affects all versions of the ffmpegdotjs package, a FFMPEG module for NodeJS. The vulnerability was disclosed on February 23, 2021, and published on April 18, 2021. This security issue allows attackers to execute arbitrary commands through the trimvideo function due to insufficient input sanitization (Snyk Advisory).

Technical details

The vulnerability stems from improper neutralization of special elements used in an OS Command (OS Command Injection, CWE-78). The issue specifically occurs in the trimvideo function, which uses the child_process exec function without proper input sanitization. The vulnerability has received a CVSS v3.1 base score of 9.8 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability can result in total loss of confidentiality, integrity, and availability of the affected system. An attacker can execute arbitrary commands on the target system, potentially leading to complete system compromise (Snyk Advisory).

Exploitability

The vulnerability is easily exploitable, requiring no special privileges or user interaction. A proof-of-concept exploit has been publicly documented. For example, an attacker can execute arbitrary commands by passing malicious input to the trimvideo function: 'ffmpegdotjs.trimvideo("package-lock.json",0,30,"n || touch success; #")' (Snyk Advisory).

Mitigation and workarounds

There is no fixed version available for the ffmpegdotjs package. Users are advised to discontinue use of the package and seek alternative solutions (Snyk Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2021-43309HIGH7.5
  • JavaScript logoJavaScript
  • uri-template-lite
NoYesAug 24, 2022
CVE-2022-24375HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 24, 2022
CVE-2022-25231HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 23, 2022
CVE-2022-21208HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 23, 2022
CVE-2022-2932MEDIUM6.1
  • JavaScript logoJavaScript
  • mobiledoc-kit
NoYesAug 22, 2022

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management