CVE-2020-36378: Vulnerability in aaptjs packageCmd function leads to arbitrary code execution

aaptjs Updated 02 Oct 2025

Summary

02/11/2021
No i
Critical
9.8

CVE-2020-36378: Vulnerability in packageCmd 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 application packaging. It provides a convenient way to interact with aapt functionality in a Node.js environment. The packageCmd function in shenzhim aaptjs 1.3.1 is affected by a critical vulnerability that allows attackers to execute arbitrary code via the filePath parameters.

Vulnerability Detail

The vulnerability arises from a flaw in the packageCmd function of aaptjs. Attackers can exploit this flaw by providing malicious filePath parameters, which can lead to the execution of arbitrary code. This can have severe consequences, including unauthorized access to sensitive data, system compromise, and potential further exploitation. The vulnerability has a CVSS score of 9.8, indicating its high severity.

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

As a workaround, if updating the package is not immediately feasible, it is recommended to exercise caution when using the packageCmd function and validate the filePath parameters before passing them to the function. Implementing input validation and sanitization can help mitigate the risk of arbitrary code execution.

Conclusion

The vulnerability in the packageCmd function of aaptjs can lead to arbitrary code execution, posing significant risks to the security and integrity of affected systems. It is crucial to update the package to a non-vulnerable version and regularly apply security patches to mitigate the risk. For further support on vulnerability remediation, 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 application packaging. It allows developers to interact with aapt functionality in a Node.js environment.

This vulnerability allows attackers to execute arbitrary code, which can lead to unauthorized access to sensitive data, system compromise, and potential further exploitation.

To fix this vulnerability, update the aaptjs package to a version beyond 1.3.1, which is not affected by this issue. Regularly updating packages is essential for applying security patches.

As a workaround, exercise caution when using the packageCmd function and validate the filePath parameters before passing them to the function. Implement input validation and sanitization to mitigate the risk of arbitrary code execution.

This vulnerability has a CVSS score of 9.8, indicating its high severity.

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