CVE-2019-10777
Description
In aws-lambda versions prior to version 1.0.5, the "config.FunctioName" is used to construct the argument used within the "exec" function without any sanitization. It is possible for a user to inject arbitrary commands to the "zipCmd" used within "config.FunctionName".
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Command injection in aws-lambda prior to 1.0.5 via unsanitized FunctionName used in exec() allows arbitrary command execution.
The vulnerability is a command injection flaw in the aws-lambda npm package (versions <1.0.5). The package's deploy functionality constructs a shell command (zipCmd) using the config.FunctionName parameter without sanitization, then passes it to the Node.js exec() function [1][3]. This allows an attacker to inject arbitrary commands by providing a malicious FunctionName value.
Exploitation requires an attacker to control the configuration file used by aws-lambda, specifically the FunctionName field. The attacker can craft a value containing shell metacharacters (e.g., "& touch Song &") which gets concatenated into the command string [3]. No authentication is needed beyond access to the configuration file; the attack is local to the system running the deploy command.
Successful exploitation allows arbitrary command execution with the privileges of the user running aws-lambda. An attacker could execute system commands, potentially leading to data exfiltration, installation of malware, or lateral movement within the environment [2][3].
The issue was fixed in version 1.0.5 of aws-lambda [2][3]. Users should upgrade to the latest version. No workarounds are documented; the fix involves proper sanitization of the FunctionName input before use in exec().
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.
| Package | Affected versions | Patched versions |
|---|---|---|
aws-lambdanpm | < 1.0.5 | 1.0.5 |
Affected products
3- aws-lambda/aws-lambdadescription
- Range: <1.0.5
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-934x-72xh-5hrgghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2019-10777ghsaADVISORY
- snyk.io/vuln/SNYK-JS-AWSLAMBDA-540839ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.