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.
HighCVSS 8.8
EPSS 2.3%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/git(Debian:12) | < 1:2.0.0~rc2-1 | 1:2.0.0~rc2-1 |
| debian/git(Debian:13) | < 1:2.0.0~rc2-1 | 1:2.0.0~rc2-1 |
| debian/git(Debian:14) | < 1:2.0.0~rc2-1 | 1:2.0.0~rc2-1 |
| git-scm git | < 1.9.3 | 1.9.3 |
References
- Debian Security Tracker CVE-2014-9938 vendor-advisory
- RHSA-2017:2004 third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com exploit third-party-advisory