CVE-2020-7604

9.8 CRITICAL

📋 TL;DR

CVE-2020-7604 is a command injection vulnerability in the pulverizr npm package that allows attackers to execute arbitrary commands on the system. The vulnerability exists because user-controlled input is passed directly to exec() without sanitization. Any application using pulverizr versions through 0.7.0 is affected.

💻 Affected Systems

Products:
  • pulverizr
Versions: through 0.7.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Any application that uses pulverizr to process files with user-controlled filenames is vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full system compromise with attacker gaining complete control over the server, allowing data theft, ransomware deployment, or use as a botnet node.

🟠

Likely Case

Remote code execution leading to data exfiltration, installation of backdoors, or lateral movement within the network.

🟢

If Mitigated

Limited impact with proper input validation and execution sandboxing in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires attacker to create a file with malicious name that gets processed by pulverizr.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 0.7.1

Vendor Advisory: https://snyk.io/vuln/SNYK-JS-PULVERIZR-560122

Restart Required: Yes

Instructions:

1. Update pulverizr to version 0.7.1 or later using npm update pulverizr. 2. Restart any services using pulverizr. 3. Verify the update with npm list pulverizr.

🔧 Temporary Workarounds

Input Validation

all

Implement strict input validation for filenames before passing to pulverizr.

Sandbox Execution

all

Run pulverizr in a containerized or sandboxed environment with limited privileges.

🧯 If You Can't Patch

  • Implement strict input validation to sanitize all user-controlled filenames before processing.
  • Run the application in a container with minimal privileges and network access.

🔍 How to Verify

Check if Vulnerable:

Check package.json or run npm list pulverizr to see if version is 0.7.0 or earlier.

Check Version:

npm list pulverizr

Verify Fix Applied:

Confirm pulverizr version is 0.7.1 or later using npm list pulverizr.

📡 Detection & Monitoring

Log Indicators:

  • Unusual command execution patterns
  • Processes spawned by pulverizr with unexpected arguments

Network Indicators:

  • Outbound connections from pulverizr process to unexpected destinations

SIEM Query:

process.name:pulverizr AND (process.cmdline:*;* OR process.cmdline:*&* OR process.cmdline:*|*)

🔗 References

📤 Share & Export