GHSA-7r9x-hr76-jr96 Command Injection in giting
Attackers can execute arbitrary code via unsanitized branch input in the pull function of the giting npm package.
- 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-7r9x-hr76-jr96?
GHSA-7r9x-hr76-jr96 is a command injection vulnerability in giting, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of gitting are vulnerable to Command Injection. The package fails to sanitize input and passes it directly to an exec call, which may allow attackers to execute arbitrary code in the system. The pull function is vulnerable through the branch variable.
Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
Which versions are affected by GHSA-7r9x-hr76-jr96?
2 open source packages ship an affected version, including giting.
| Package | Affected | Fixed in |
|---|---|---|
giting npm | From 0.0.0 | None |
giting npm | From 0.0.0 | None |
How do I fix GHSA-7r9x-hr76-jr96?
No fix has been published for GHSA-7r9x-hr76-jr96 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-7r9x-hr76-jr96 being exploited?
There is no known exploitation of GHSA-7r9x-hr76-jr96 in the wild and no public exploit code.