CVE-2020-36380: Vulnerability in aaptjs leads to arbitrary code execution

aaptjs Updated 02 Oct 2025

Summary

01/11/2021
No i
Critical
9.8

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for aaptjs.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback