CVE-2022-25853 semver-tags is vulnerable to Command Injection via the getGitTagsRemote function
Attackers can execute arbitrary commands via improper input sanitization in the getGitTagsRemote function of the semver-tags npm package.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-25853?
CVE-2022-25853 is a high-severity command injection vulnerability in semver-tags, published on 6 Feb 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
All versions of the package semver-tags are vulnerable to Command Injection via the getGitTagsRemote function due to improper input sanitization.
Weakness: CWE-78
Which versions are affected by CVE-2022-25853?
2 open source packages ship an affected version, including semver-tags. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
semver-tags npm | All versions to 0.4.10 | None |
semver-tags npm | All versions to 0.4.10 | None |
Products include Semver-Tags Project Semver-Tags.
How do I fix CVE-2022-25853?
No fix has been published for CVE-2022-25853 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-2022-25853 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25853 exists.
Sources
Also known as GHSA-8h3g-hcwp-6hxq.