Skip to content
OpenAdvisories
Unscored CVE-2014-9938 EUVD-2014-9743GHSA-6vhm-rfmv-gf4j

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…

Published Mar 20, 2017 · Updated Aug 6, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 git 1:2.0.0~rc2-1 —
Debian 13 git 1:2.0.0~rc2-1 —
Debian 12 git 1:2.0.0~rc2-1 —
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS git 1:1.9.1-1ubuntu0.4 USN-3243-1
ReleasePackageFixed inAdvisory
RHEL 7 git +15 1.8.3.1-11.el7 RHSA-2017:2004

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 git +15 1.8.3.1-11.el7 ELSA-2017-2004

Advisories 3

References