CVE-2022-24753: Code injection in Stripe CLI on Windows

github.com/stripe/stripe-cli Updated 02 Oct 2025

Summary

10/03/2022
Yes i
High
7.7

CVE-2022-24753: Code injection in Stripe CLI on windows. Affects github.com/stripe/stripe-cli versions < 1.7.13. Fixed in 1.7.13. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Stripe CLI is a command-line tool developed by Stripe, a popular online payment processing platform. It allows developers to interact with Stripe's API and perform various tasks related to managing payments, subscriptions, and other Stripe features. The CLI is written in Go and is primarily used on Windows, MacOS, and Linux operating systems. However, this vulnerability specifically affects the Windows version of Stripe CLI.

Vulnerability Detail

The vulnerability in Stripe CLI on Windows arises when certain commands are executed in a directory where an attacker has planted malicious files. The commands affected by this vulnerability are 'stripe login', 'stripe config -e', 'stripe community', and 'stripe open'. When these commands are run in the compromised directory, an attacker can inject and execute arbitrary code within the context of the current user. This can lead to unauthorized access, data theft, or further compromise of the system. It's important to note that this vulnerability does not impact the MacOS and Linux versions of Stripe CLI.

How To Fix

Latest published version: v1.55.0 as of 22 Oct 2026

go get github.com/stripe/stripe-cli@v1.55.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.7.13

This is the first release that contains the fix.

go get github.com/stripe/stripe-cli@v1.7.13

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring that they only run the affected commands in trusted directories and regularly update their Stripe CLI installation to the latest version.

Conclusion

The vulnerability in Stripe CLI on Windows allows for code injection when certain commands are run in a compromised directory. Upgrading to Stripe CLI version 1.7.13 or later is recommended to mitigate this vulnerability. It is important to stay updated with the latest security patches and follow best practices to ensure the security of your systems.

See every vulnerability recorded for github.com/stripe/stripe-cli →

Share this vulnerability

FAQ

Stripe CLI is a command-line tool developed by Stripe that allows developers to interact with Stripe's API and perform various tasks related to managing payments, subscriptions, and other Stripe features.

This vulnerability specifically affects the Windows version of Stripe CLI. The MacOS and Linux versions are not impacted.

The commands 'stripe login', 'stripe config -e', 'stripe community', and 'stripe open' are affected by this vulnerability.

Successful exploitation of this vulnerability allows an attacker to run arbitrary code within the context of the current user, potentially leading to unauthorized access, data theft, or further compromise of the system.

There is no evidence of exploitation of this vulnerability at the time of reporting.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/stripe/stripe-cli.

How To Fix

Latest published version: v1.55.0 as of 22 Oct 2026

go get github.com/stripe/stripe-cli@v1.55.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.7.13

This is the first release that contains the fix.

go get github.com/stripe/stripe-cli@v1.7.13

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback