Skip to content

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

ProductAffected versionsFixed 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