CVE-2020-36380: Vulnerability in aaptjs leads to arbitrary code execution
Summary
CVE-2020-36380: Vulnerability in crunch function leads to arbitrary code execution via filePath parameters. Affects aaptjs versions < 1.3.1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
aaptjs is a node wrapper for aapt, a tool used for Android asset packaging. It provides a convenient way to interact with aapt functionality in a Node.js environment. The vulnerability affects version 1.3.1 of aaptjs. The package allows attackers to execute arbitrary code through the crunch function, specifically via the filePath parameters. This vulnerability has a CVSS score of 9.8, indicating its critical severity.
Vulnerability Detail
The vulnerability in aaptjs arises from a flaw in the crunch function. Attackers can exploit this flaw by providing malicious filePath parameters, which can lead to the execution of arbitrary code. This can result in unauthorized access, data breaches, or the compromise of the affected system. The vulnerability has been assigned the identifier CVE-2020-36380.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. However, it is advisable to exercise caution when handling user-supplied input and validate any filePath parameters to prevent the execution of arbitrary code.
Conclusion
In conclusion, the vulnerability in aaptjs (CVE-2020-36380) allows attackers to execute arbitrary code through the crunch function. Upgrading to a version beyond 1.3.1 will resolve the issue. Regularly updating dependencies is crucial to ensure the latest security patches are applied. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for aaptjs →
FAQ
aaptjs is a node wrapper for aapt, a tool used for Android asset packaging. It allows developers to interact with aapt functionality in a Node.js environment.
The vulnerability allows attackers to execute arbitrary code, which can lead to unauthorized access, data breaches, or compromise of the affected system.
The CVSS score of this vulnerability is 9.8, indicating its critical severity.
To fix this vulnerability, upgrade aaptjs to a version beyond 1.3.1, which is not affected by the issue.
While no specific workaround is mentioned, it is recommended to validate any user-supplied input, especially filePath parameters, to prevent the execution of arbitrary code.
References
Related vulnerabilities
Recent vulnerabilities recorded for aaptjs.