VYPR
Critical severityNVD Advisory· Published Jul 25, 2022· Updated Sep 16, 2024

Command Injection

CVE-2020-28438

Description

This affects all versions of package deferred-exec. The injection point is located in line 42 in lib/deferred-exec.js

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Command injection in deferred-exec npm package allows arbitrary command execution via unsanitized input.

Vulnerability

Overview

The deferred-exec npm package, a tool for running exec commands using promises, is vulnerable to command injection in all versions. The injection point is located at line 42 in lib/deferred-exec.js [1][3]. The package fails to properly sanitize user-supplied input passed as the first argument to the main function, allowing an attacker to inject arbitrary shell commands.

Exploitation

An attacker can exploit this vulnerability by providing a crafted string as the command argument. No authentication is required, and the attack can be performed remotely if the application passes untrusted input to deferred-exec. The Snyk advisory provides a proof-of-concept: var a = require("deferred-exec"); a(" touch JHU ",{}); [4]. This demonstrates that arbitrary commands can be executed on the host system.

Impact

Successful exploitation allows an attacker to execute arbitrary operating system commands with the privileges of the Node.js process. This can lead to full system compromise, data exfiltration, or further lateral movement within the network.

Mitigation

As of the latest information, there is no fixed version available for deferred-exec [4]. The package appears to be unmaintained. Users should avoid using this package and migrate to a maintained alternative. If migration is not immediately possible, ensure that no untrusted input is passed to the package's functions.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
deferred-execnpm
<= 0.3.1

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.