CVE-2020-36376
Description
Command injection in aaptjs list function allows remote code execution via crafted filePath parameter.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Command injection in aaptjs list function allows remote code execution via crafted filePath parameter.
Vulnerability
The list function in aaptjs version 1.3.1 passes user-supplied filePath arguments directly to the aapt command without sanitization, leading to command injection [1][2]. The vulnerable code uses string concatenation to build the command, allowing arbitrary shell commands to be injected [2].
Exploitation
An attacker can provide a maliciously crafted filePath parameter containing shell metacharacters (e.g., backticks, $()). When the list function is called with such input, the injected commands execute in the context of the Node.js process [2]. No authentication is required if the application exposes this function to user input.
Impact
Successful exploitation allows arbitrary command execution with the privileges of the Node.js process. The attacker can execute system commands, read sensitive files, or install malware [1][2]. This constitutes full remote code execution.
Mitigation
Update to a patched version of aaptjs that properly sanitizes the filePath input. As of the publication date, no official fix has been released in the repository [3]; users should avoid passing untrusted input to the list function or implement input validation.
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 |
|---|---|---|
aaptjsnpm | <= 1.3.1 | — |
Affected products
2- shenzhim/aaptjsdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-4g7x-7vgq-3j28ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-36376ghsaADVISORY
- github.com/shenzhim/aaptjs/issues/2ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.