VYPR
High severityNVD Advisory· Published Mar 9, 2022· Updated Apr 23, 2025

Code injection in Stripe CLI on windows

CVE-2022-24753

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.

PackageAffected versionsPatched versions
github.com/stripe/stripe-cliGo
< 1.7.131.7.13

Affected products

1

Patches

1
be38da5c0191

replace exec package (#820)

https://github.com/stripe/stripe-cliVincent CheungFeb 16, 2022via ghsa
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

News mentions

0

No linked articles in our index yet.