CVE-2022-24753 Code injection in Stripe CLI on windows
An attacker can execute arbitrary code on Windows by planting files in a directory where specific Stripe CLI commands are run.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-24753?
CVE-2022-24753 is a high-severity command injection vulnerability in stripe-cli, published on 9 Mar 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Stripe CLI is a command-line tool for the Stripe eCommerce platform. A vulnerability in Stripe CLI exists on Windows when certain commands are run in a directory where an attacker has planted files. The commands are `stripe login`, `stripe config -e`, `stripe community`, and `stripe open`. MacOS and Linux are unaffected. An attacker who successfully exploits the vulnerability can run arbitrary code in the context of the current user. The update addresses the vulnerability by throwing an error in these situations before the code can run.Users are advised to upgrade to version 1.7.13. There are no known workarounds for this issue.
Weakness: CWE-78
Which versions are affected by CVE-2022-24753?
3 open source packages ship an affected version, including github.com/stripe/stripe-cli. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/stripe/stripe-cli Go | All versions | 1.7.13 |
github.com/stripe/stripe-cli Go | All versions | 1.7.13 |
github.com/stripe/stripe-cli Go | All versions | 1.7.13 |
Products include Stripe Stripe Cli.
How do I fix CVE-2022-24753?
Upgrade github.com/stripe/stripe-cli to 1.7.13 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-24753 being exploited?
There is no known exploitation of CVE-2022-24753 in the wild and no public exploit code.
Other vulnerabilities in stripe-cli
Sources
Also known as GHSA-4cx6-fj7j-pjx9, GO-2022-0350.