CVE-2026-28291
published high CVSS 3.1 · 8.1simple-git has Command Execution via Option-Parsing Bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| steveukx | — | git-js< 3.32.0 | Affected | Not stated | GitHub_M |
| Red Hat | — | simple-gitRed Hat Build of Keycloak | Affected | Not stated | redhat-SADP |
| Red Hat Enterprise Linux | 8, 9 | grafana | Unaffected | Not required | redhat-SADP |
| Red Hat | — | simple-gitRed Hat JBoss Enterprise Application Platform 8 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | simple-gitRed Hat JBoss Enterprise Application Platform Expansion Pack | Unaffected | Not required | redhat-SADP |
| Red Hat | — | simple-gitRed Hat Process Automation 7 | Affected | Not stated | redhat-SADP |
Description
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.
A flaw was found in simple-git, a JavaScript library for running native Git commands. An attacker could exploit this vulnerability by manipulating Git options, bypassing existing safety checks. This incomplete fix for a previous vulnerability allows for the execution of arbitrary commands, leading to potential system compromise.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| steveukx | git-js | < 3.32.0 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Build of Keycloak | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Process Automation 7 | Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
8- https://access.redhat.com/security/cve/CVE-2026-28291
- RHBZ#2457930 https://bugzilla.redhat.com/show_bug.cgi?id=2457930
- https://github.com/steveukx/git-js/blob/789c13ebabcf18ebe0b3a0c88ebb4037dede42e3/simple-git/src/lib/plugins/block-unsafe-operations-plugin.ts#L26
- https://github.com/steveukx/git-js/commit/1effd8e5012a5da05a9776512fac3e39b11f2d2d
- https://github.com/steveukx/git-js/releases/tag/simple-git%403.32.0
- https://github.com/steveukx/git-js/security/advisories/GHSA-jcxm-m3jx-f287
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-28291.json
- https://www.cve.org/CVERecord?id=CVE-2022-25860
Provider assertions
3GitHub_M · cna
simple-git has Command Execution via Option-Parsing Bypass
redhat-SADP · adp
simple-git: simple-git: Command Execution via Option-Parsing Bypass in simple-git
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- bda415ca5e8d9d9dc4aa852ad8747bb84bf68149d87c9ee6192a429ff5b83a2f
- Ingested
- 23 Sep 2026, 09:07:57 UTC
- Source record
- Official CVE record