GHSA-rffp-mc78-wjf7 Command Injection in cocos-utils

Not scored Published

Attackers can execute arbitrary commands on the server via the unzip function in cocos-utils, requiring immediate replacement of the 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 GHSA-rffp-mc78-wjf7?

GHSA-rffp-mc78-wjf7 is a command injection vulnerability in cocos-utils, published on 2 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of cocos-utils are vulnerable to Remote Code Execution. The unzip() function concatenates user input to exec() which may allow attackers to execute arbitrary commands on the server.

Recommendation

No fix is currently available. Consider using an alternative module until a fix is made available.

Which versions are affected by GHSA-rffp-mc78-wjf7?

2 open source packages ship an affected version, including cocos-utils.

PackageAffectedFixed in
cocos-utils npmAll versionsNone
cocos-utils npmAll versionsNone

How do I fix GHSA-rffp-mc78-wjf7?

No fix has been published for GHSA-rffp-mc78-wjf7 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 GHSA-rffp-mc78-wjf7 being exploited?

There is no known exploitation of GHSA-rffp-mc78-wjf7 in the wild and no public exploit code.

Sources

Is GHSA-rffp-mc78-wjf7 in your software?

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

Check your SBOMs for free