High severity · published Mar 20, 2017
CVE-2014-9938
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
8.8
CVSS
2.3%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.3% · higher than 83% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GI
Git · Git-scm
before 1.9.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2014-9938
CVE.org
https://www.cve.org/CVERecord?id=CVE-2014-9938
Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:2004
Patch
https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f
Exploit
https://github.com/njhartwell/pw3nage
More from Git
8.0
CVE-2025-48384
Git allows arbitrary code execution through broken config quoting
9.8
CVE-2022-41903
Git is distributed revision control system
9.8
CVE-2022-23521
Git is distributed revision control system
9.8
CVE-2014-9390
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 before 2.2.1 on Windows and OS X; Mercurial before 3.2.3 on Windows and OS X; Apple Xcode…
9.8
CVE-2019-1353
An issue was found in Git before v2.24.1, v2.23.1, v2.22.2, v2.21.1, v2.20.2, v2.19.3, v2.18.2, v2.17.3, v2.16.6, v2.15.4, and v2.14.6
