Code injection in Stripe CLI on windows
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/stripe/stripe-cliGo | < 1.7.13 | 1.7.13 |
Affected products
1- Range: < 1.7.13
Patches
1be38da5c0191replace exec package (#820)
2 files changed · +4 −2
pkg/config/config.go+2 −1 modified@@ -5,12 +5,13 @@ import ( "fmt" "io/ioutil" "os" - "os/exec" "path/filepath" "runtime" "strings" "time" + exec "golang.org/x/sys/execabs" + "github.com/BurntSushi/toml" "github.com/mitchellh/go-homedir" log "github.com/sirupsen/logrus"
pkg/open/open.go+2 −1 modified@@ -2,8 +2,9 @@ package open import ( "fmt" - "os/exec" "runtime" + + exec "golang.org/x/sys/execabs" ) var execCommand = exec.Command
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
4- github.com/advisories/GHSA-4cx6-fj7j-pjx9ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-24753ghsaADVISORY
- github.com/stripe/stripe-cli/commit/be38da5c0191adb77f661f769ffff2fbc7ddf6cdghsax_refsource_MISCWEB
- github.com/stripe/stripe-cli/security/advisories/GHSA-4cx6-fj7j-pjx9ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.