Command Injection Affecting aaptjs package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-AAPTJS-6038595
  • published9 Sept 2024
  • disclosed29 Oct 2023
  • creditMiguel Coimbra

Introduced: 29 Oct 2023

CVE NOT AVAILABLE CWE-78  (opens in a new tab)
First added by Snyk

How to fix?

There is no fixed version for aaptjs.

Overview

aaptjs is an A node wraper for aapt

Affected versions of this package are vulnerable to Command Injection due to improper input sanitization via the add function when using pipe (|) after the zip file value.

PoC

const pkg = require('aaptjs');

pkg.add('test0.zip | touch exploited.txt', ['aaptjs_poc-zip-cmd-inject.js']);

References

CVSS Scores

version 3.1