First published: Mon Mar 20 2017(Updated: )
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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/git | <1.9.3 | 1.9.3 |
Git Git-shell | <1.9.3 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2014-9938 is considered a high severity vulnerability that allows code execution through unsanitized branch names in Git's PS1 variable.
To fix CVE-2014-9938, update Git to version 1.9.3 or later where the vulnerability has been addressed.
CVE-2014-9938 affects Git versions prior to 1.9.3.
The impact of CVE-2014-9938 can lead to remote code execution if a user interacts with a malicious repository.
Yes, CVE-2014-9938 can be exploited by a local user who can execute commands within a Git environment with untrusted branches.