org.mvnpm:simple-git@3.33.0

  • latest version

    4.0.2

  • first published

    7 months ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:simple-git package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Arbitrary Argument Injection

    org.mvnpm:simple-git is a light weight interface for running git commands in any node.js application.

    Affected versions of this package are vulnerable to Arbitrary Argument Injection via the --exec option in listRemote() and raw(), which allows attackers to bypass the allowUnsafePack guard by injecting --exec into non-push git operations such as ls-remote, archive, fetch-pack, or send-pack, resulting in arbitrary command execution on the host.

    How to fix Arbitrary Argument Injection?

    A fix was pushed into the master branch but not yet published.

    [0,)
    • C
    Arbitrary Command Injection

    org.mvnpm:simple-git is a light weight interface for running git commands in any node.js application.

    Affected versions of this package are vulnerable to Arbitrary Command Injection via the detect-vulnerable-config-writes path in the argv-parser package, where unsanitised arguments passed to git commands allow an attacker to inject arbitrary options through abbreviated flag handling. Because git accepts abbreviated long options by default, a remote attacker can supply a truncated flag that resolves to a dangerous option (such as --upload-pack) and achieve arbitrary command execution on the host running the library.

    How to fix Arbitrary Command Injection?

    Upgrade org.mvnpm:simple-git to version 4.0.2 or higher.

    [,4.0.2)
    • C
    Command Injection

    org.mvnpm:simple-git is a light weight interface for running git commands in any node.js application.

    Affected versions of this package are vulnerable to Command Injection via the rebase command handler and the trailer.<token>.cmd/trailer.<token>.command configuration keys, which allow an attacker to inject the -x/--exec flag or a shell-executable trailer command into a spawned Git process. An attacker who can influence the arguments or configuration passed to simple-git can achieve arbitrary command execution on the host system.

    How to fix Command Injection?

    Upgrade org.mvnpm:simple-git to version 4.0.2 or higher.

    [3.33.0,4.0.2)
    • C
    Arbitrary Command Injection

    org.mvnpm:simple-git is a light weight interface for running git commands in any node.js application.

    Affected versions of this package are vulnerable to Arbitrary Command Injection via the blockUnsafeOperationsPlugin, which fails to block dangerous git options (such as --upload-pack, --receive-pack, and --exec) when abbreviated forms of those options are supplied by an attacker. An attacker who can influence the arguments passed to git commands can bypass the plugin's protections and achieve remote code execution.

    Note: This is only exploitable when the consumer has not opted in via unsafe:{allowUnsafePack:true}, meaning the plugin is active but can be bypassed through abbreviated option names.

    How to fix Arbitrary Command Injection?

    Upgrade org.mvnpm:simple-git to version 4.0.2 or higher.

    [,4.0.2)
    • C
    Remote Code Execution (RCE)

    org.mvnpm:simple-git is a light weight interface for running git commands in any node.js application.

    Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to an incomplete fix for CVE-2022-25912 that blocks the -c option but not the equivalent --config form. If untrusted input can reach the options argument passed to simple-git, an attacker may still achieve remote code execution by enabling protocol.ext.allow=always and using an ext:: clone source.

    How to fix Remote Code Execution (RCE)?

    Upgrade org.mvnpm:simple-git to version 3.36.0 or higher.

    [,3.36.0)