contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in…
Priority MEDIUM 43CWE-116Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
Summary
contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a malicious repository to cause code execution.
Why it matters now
EPSS 0.0232 83rd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed Red Hat: 1 advisory
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
Red Hat 1 advisory
- RHSA-2017:2004 Released 2017-08-01 · Red Hat rating Moderategit security and bug fix update
- Red Hat Enterprise Linux Client Optional (v. 7) emacs-git-1.8.3.1-11.el7, emacs-git-el-1.8.3.1-11.el7, git-1.8.3.1-11.el7 +13
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) emacs-git-1.8.3.1-11.el7, emacs-git-el-1.8.3.1-11.el7, git-1.8.3.1-11.el7 +13
- Red Hat Enterprise Linux Server (v. 7) git-1.8.3.1-11.el7, perl-Git-1.8.3.1-11.el7
- Red Hat Enterprise Linux Server Optional (v. 7) emacs-git-1.8.3.1-11.el7, emacs-git-el-1.8.3.1-11.el7, git-all-1.8.3.1-11.el7 +11
- Red Hat Enterprise Linux Workstation (v. 7) git-1.8.3.1-11.el7, perl-Git-1.8.3.1-11.el7
- Red Hat Enterprise Linux Workstation Optional (v. 7) emacs-git-1.8.3.1-11.el7, emacs-git-el-1.8.3.1-11.el7, git-all-1.8.3.1-11.el7 +11
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2017:2004 |
Not affected: 2 products
- Red Hat Enterprise Linux 6
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2014-9938
- 2026-10-03 Alias added: GHSA-6vhm-rfmv-gf4j
References
More Git-scm Git vulnerabilities
- TI-2025-30709 Git allows arbitrary code execution through broken config quoting KEVCVSS 3.1HIGH 8.1
- TI-2018-12447 Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2… CVSS 3.0CRITICAL 9.8
- TI-2022-07580 gitattributes parsing integer overflow in git CVSS 3.1CRITICAL 9.8
- TI-2014-07619 Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x… CVSS 3.1CRITICAL 9.8
- TI-2022-20244 Integer overflow in `git archive`, `git log --format` leading to RCE in git CVSS 3.1CRITICAL 9.8
- TI-2017-14454 A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and… CVSS 3.0HIGH 8.8
Sources
- CVE-2014-9938 · CVE Program
- CVE-2014-9938 · NVD
- FIRST EPSS
- GHSA-6vhm-rfmv-gf4j · GitHub Advisory Database · CC BY 4.0
- CVE-2014-9938 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences