REDHAT-BUG-2457930: High severity npm/simple-git vulnerability

Published Apr 13, 2026
·
Updated

simple-git enables running native Git commands from JavaScript. Versions up to and including 3.31.1 allow execution of arbitrary commands through Git option manipulation, bypassing safety checks meant to block dangerous options like -u and --upload-pack. The flaw stems from an incomplete fix for CVE-2022-25860, as Git's flexible option parsing allows numerous character combinations (e.g., -vu, -4u, -nu) to circumvent the regular-expression-based blocklist in the unsafe operations plugin. Due to the virtually infinite number of valid option variants that Git accepts, a complete blocklist-based mitigation may be infeasible without fully emulating Git's option parsing behavior. This issue has been fixed in version 3.32.0.

Affected Software

2 affected components
npm/simple-git<=3.31.1
npm/simple-git=3.32.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade simple-git to a version that resolves this vulnerability.

    Fixed in 3.32.0
  2. Compensating control

    For versions up to and including 3.31.1, prevent exploitation of CVE-2022-25860 by blocking/controlling use of native Git option manipulation patterns that can bypass the unsafe operations plugin safeguards (e.g., options that include combinations like -u / -vu / -4u / -nu) when invoking Git via simple-git.

Event History

Apr 13, 2026
Data Sourced
via Red Hat·06:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2457930?

The severity of REDHAT-BUG-2457930 is rated as high with a score of 7.

2

What vulnerabilities does REDHAT-BUG-2457930 address?

REDHAT-BUG-2457930 addresses a flaw in the simple-git package that allows for the execution of arbitrary commands due to Git option manipulation.

3

How do I fix REDHAT-BUG-2457930?

To fix REDHAT-BUG-2457930, upgrade the simple-git package to a version higher than 3.31.1 that contains the necessary patches.

4

What software is affected by REDHAT-BUG-2457930?

The affected software associated with REDHAT-BUG-2457930 is npm/simple-git.

5

What causes the issue described in REDHAT-BUG-2457930?

The issue in REDHAT-BUG-2457930 is caused by an incomplete fix for a previous vulnerability that fails to block dangerous Git options.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203