CVE-2014-9938
contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1...
CVE-2014-9938 is a high vulnerability (CVSS 8.8) in Git-scm Git, published March 19, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.32%, the 83rd percentile. Fixed in git 1:2.0.0~rc2-1.
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
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.
- Record
CVE-2014-9938- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-116
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2014-9938- Updated
- 2026-11-02
EUVDEUVD-2014-9743 No score
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.
- Record
EUVD-2014-9743- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-6vhm-rfmv-gf4j
8.8
contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1...
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.
- Record
GHSA-6vhm-rfmv-gf4j- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-116
- Updated
- 2026-11-02
OSV
8.8
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.
- Record
CVE-2014-9938- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2014-9938
8.8
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.
- Record
DEBIAN-CVE-2014-9938- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2017:2004
7.8
Red Hat Security Advisory: git security and bug fix update
- Record
RHSA-2017:2004- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2014-9938
8.8
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.
- Record
UBUNTU-CVE-2014-9938- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUSN-3243-1 No score
git vulnerability
It was discovered that Git incorrectly sanitized branch names in the PS1 variable when configured to display the repository status in the shell prompt. If a user were tricked into exploring a malicious repository, a remote attacker could use this issue to execute arbitrary code.
- Record
USN-3243-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gitDebian:12 |
before 1:2.0.0~rc2-1 | 1:2.0.0~rc2-1 |
gitDebian:13 |
before 1:2.0.0~rc2-1 | 1:2.0.0~rc2-1 |
gitDebian:14 |
before 1:2.0.0~rc2-1 | 1:2.0.0~rc2-1 |
emacs-gitRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
emacs-git-elRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-allRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-bzrRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-cvsRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-daemonRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
Show 62 moreShow less
| Package | Affected | Fixed |
|---|---|---|
git-debuginfoRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-emailRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-guiRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-hgRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-p4Red Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-svnRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitkRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitwebRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
perl-GitRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
perl-Git-SVNRed Hat:enterprise_linux:7::client |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
emacs-gitRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
emacs-git-elRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-allRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-bzrRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-cvsRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-daemonRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-debuginfoRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-emailRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-guiRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-hgRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-p4Red Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-svnRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitkRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitwebRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
perl-GitRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
perl-Git-SVNRed Hat:enterprise_linux:7::computenode |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
emacs-gitRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
emacs-git-elRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-allRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-bzrRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-cvsRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-daemonRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-debuginfoRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-emailRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-guiRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-hgRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-p4Red Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-svnRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitkRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitwebRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
perl-Git-SVNRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
perl-GitRed Hat:enterprise_linux:7::server |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
emacs-gitRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
emacs-git-elRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-allRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-bzrRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-cvsRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-daemonRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-debuginfoRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-emailRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-guiRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-hgRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-p4Red Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
git-svnRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitkRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitwebRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
perl-Git-SVNRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
perl-GitRed Hat:enterprise_linux:7::workstation |
before 0:1.8.3.1-11.el7 | 0:1.8.3.1-11.el7 |
gitUbuntu:14.04:LTS |
before 1:1.9.1-1ubuntu0.4, plus listed versions 1:1.8.3.2-11:1.8.4.2-11:1.8.4.3-11:1.8.4.4-11:1.8.5-1 Show 10 moreShow less1:1.8.5.1-11:1.8.5.2-11:1.8.5.2-21:1.8.5.3-11:1.9~rc1-11:1.9.0-11:1.9.1-11:1.9.1-1ubuntu0.11:1.9.1-1ubuntu0.21:1.9.1-1ubuntu0.3 |
1:1.9.1-1ubuntu0.4 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
github.com/njhartwell/pw3nage
github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f
access.redhat.com/errata/RHSA-2017:2004
nvd.nist.gov/vuln/detail/CVE-2014-9938
github.com/advisories/GHSA-6vhm-rfmv-gf4j
security-tracker.debian.org/tracker/CVE-2014-9938
Show 13 moreShow less
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/7.4_Release_Notes/index.html
bugzilla.redhat.com/show_bug.cgi?id=1369173
bugzilla.redhat.com/show_bug.cgi?id=1434415
bugzilla.redhat.com/show_bug.cgi?id=1450407
security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_2004.json
access.redhat.com/security/cve/CVE-2014-9938
cve.org/CVERecord?id=CVE-2014-9938
access.redhat.com/security/cve/CVE-2017-8386
cve.org/CVERecord?id=CVE-2017-8386
nvd.nist.gov/vuln/detail/CVE-2017-8386
ubuntu.com/security/CVE-2014-9938
ubuntu.com/security/notices/USN-3243-1