CVE-2020-7604: OS Command Injection in pulverizr
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.6142%
CWE
Published
5/7/2021
Updated
9/6/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
pulverizr | npm | <= 0.7.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the 'compress' function in lib/job.js
where user-controlled 'filename' is directly interpolated into an exec command without sanitization. The code explicitly uses string concatenation to build the 'cp' command (line 73), allowing attackers to inject OS commands via specially crafted filenames. This matches the CWE-78 description and advisory details about arbitrary command execution through filename manipulation.