CVE-2020-36381 Vulnerability in singleCrunch function leads to arbitrary code execution via filePath parameters

Critical 9.8 Published Updated

Attackers can execute arbitrary code via the filePath parameter in the singleCrunch function of the aaptjs npm library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2020-36381?

CVE-2020-36381 is a critical command injection vulnerability in n/a, published on 31 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in the singleCrunch function in shenzhim aaptjs 1.3.1, allows attackers to execute arbitrary code via the filePath parameters.

Weakness: CWE-78

Which versions are affected by CVE-2020-36381?

2 open source packages ship an affected version, including aaptjs. It affects 1 product.

PackageAffectedFixed in
aaptjs npmAll versions to 1.3.1None
aaptjs npmAll versions to 1.3.1None

Products include Aaptjs Project Aaptjs.

How do I fix CVE-2020-36381?

No fix has been published for CVE-2020-36381 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2020-36381 being exploited?

There is no known exploitation of CVE-2020-36381 in the wild and no public exploit code.

Sources

Also known as GHSA-7fw7-gh23-f832.

Is CVE-2020-36381 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free