{"schemaVersion":3,"id":"CVE-2026-28291","aliases":["GHSA-jcxm-m3jx-f287","CGA-95cp-cmjf-qfr2","CGA-ff52-r2qf-j3qc","CGA-h93j-v46f-mfch","CGA-xr4f-4vc9-gjwc"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-04-13T17:15:14.594Z","modified":"2026-07-15T01:11:56.580Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0093,"percentile":0.59993,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.27799999999999997,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00652},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00844,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00844,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00844,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0093,"percentile":0.59993}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00652,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0093,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0093,"percentile":0.59993}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_STEVEUKX_GIT-JS","name":"Git Js","source":"github","url":"https://github.com/steveukx/git-js/security/advisories/GHSA-g4wm-2vf7-vfgr","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"chainguard","product":"gemini-cli","name":"gemini-cli","label":"gemini-cli","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gemini-cli","purlType":"apk","versions":[{"text":"< 0.49.0-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.49.0-r3","eol":null,"hubHref":null},{"vendor":"Npm","product":"simple-git","name":"simple-git","label":"simple-git","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/simple-git","purlType":"npm","versions":[{"text":"< 3.32.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.32.0","eol":null,"hubHref":null},{"vendor":"simple-git_project","product":"simple-git","name":"simple-git","label":"simple-git","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.32.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.32.0","eol":null,"hubHref":"/vendor/simple-git_project/simple-git"},{"vendor":"steveukx","product":"git-js","name":"git-js","label":"git-js","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.32.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.32.0","eol":null,"hubHref":"/vendor/steveukx/git-js"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/steveukx/git-js/security/advisories/GHSA-jcxm-m3jx-f287","label":"github.com/steveukx/git-js/security/advisories/GHSA-jcxm-m3jx-f287","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Exploit","Vendor Advisory"]},{"url":"https://github.com/steveukx/git-js/commit/1effd8e5012a5da05a9776512fac3e39b11f2d2d","label":"github.com/steveukx/git-js/commit/1effd8e5012a5da05a9776512fac3e39b11f2d2d","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/steveukx/git-js/blob/789c13ebabcf18ebe0b3a0c88ebb4037dede42e3/simple-git/src/lib/plugins/block-unsafe-operations-plugin.ts#L26","label":"github.com/steveukx/…","hostname":"github.com","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://github.com/steveukx/git-js/releases/tag/simple-git%403.32.0","label":"github.com/steveukx/git-js/releases/tag/simple-git%403.32.0","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25860","label":"www.cve.org/CVERecord?id=CVE-2022-25860","hostname":"www.cve.org","tags":["X Refsource MISC","WEB","Third Party Advisory","VDB Entry"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-28291","label":"access.redhat.com/security/cve/CVE-2026-28291","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2457930","label":"bugzilla.redhat.com/show_bug.cgi?id=2457930","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-28291.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-28291.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28291","label":"nvd.nist.gov/vuln/detail/CVE-2026-28291","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/steveukx/git-js","label":"github.com/steveukx/git-js","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28291.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28291.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-RPH4-7C9F-V9J4"]},"timeline":[{"kind":"published","date":"2026-04-13T17:15:14.594Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:11:56.580Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":43,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T18:44:04.952Z","stale":false,"partial":false}}