CVE-2014-9938 Code injection in n/a
A malicious Git repository can execute arbitrary code by exploiting unsanitized branch names in the shell prompt configuration.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2014-9938?
CVE-2014-9938 is a high-severity code injection vulnerability in n/a, published on 20 Mar 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-116
Which versions are affected by CVE-2014-9938?
It affects 1 product.
Products include Git-Scm Git.
How do I fix CVE-2014-9938?
Upgrade to a fixed version.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2014-9938 being exploited?
There is no known exploitation of CVE-2014-9938 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2014-9938, GHSA-6vhm-rfmv-gf4j, UBUNTU-CVE-2014-9938, USN-3243-1.