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.
References
Link | Resource |
---|---|
https://github.com/njhartwell/pw3nage | Exploit Third Party Advisory |
https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f | Patch Third Party Advisory |
https://access.redhat.com/errata/RHSA-2017:2004 | Third Party Advisory |
Configurations
Information
Published : 2017-03-19 17:59
Updated : 2020-04-29 13:26
NVD link : CVE-2014-9938
Mitre link : CVE-2014-9938
JSON object : View
CWE
CWE-116
Improper Encoding or Escaping of Output
Products Affected
git-scm
- git