CVE-2022-24376: OS Command Injection in git-promise

git-promise Updated 02 Oct 2025

Summary

11/06/2022
No i
High
7.2

CVE-2022-24376: OS Command Injection in git-promise. Affects git-promise versions < 1.0.0. No fix is published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The git-promise package is an npm package that provides a promise-based interface for executing Git commands. It allows developers to interact with Git repositories programmatically. The package is widely used in various projects and applications.

Vulnerability Detail

The git-promise package is vulnerable to OS Command Injection due to an inappropriate fix of a prior vulnerability. This vulnerability allows an attacker to execute arbitrary commands on the host system by injecting malicious input into the Git commands executed by the package. The vulnerability has a CVSS score of 7.2, indicating a high severity level. It can lead to unauthorized access, data leakage, and potential compromise of the host system.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As there is no fix available for the vulnerability, it is crucial to take precautionary measures to mitigate the risk. One possible workaround is to carefully validate and sanitize any user input before passing it to the git-promise package. This can help prevent command injection attacks by ensuring that only safe and expected input is used in Git commands.

Conclusion

The git-promise package is vulnerable to OS Command Injection, and unfortunately, there is no fix available for this vulnerability. It is crucial to take precautionary measures, such as validating and sanitizing user input, to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for git-promise →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary commands on the host system, potentially leading to unauthorized access, data leakage, and compromise of the system.

No, the vulnerability in the git-promise package will not be fixed. The package's README file has been updated with a warning regarding this issue.

Yes, all versions of the git-promise package are affected by this vulnerability.

It is recommended to find an alternative package or implement a custom solution that does not rely on git-promise. Additionally, ensure that any user input is properly validated and sanitized to mitigate the risk of command injection attacks.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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