Skip to content
Fencer Intel
high 8.8

CVE-2014-9938 json

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 2017-03-20 9 y ago modified 2026-06-17 4 mo ago also EUVD-2014-9743

cvss
8.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.3%
EPSS 2.3% chance of exploitation in 30 days, percentile 83%
public exploits
0
none known

Summary

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.

Patch / fix

  • git-scm git 1.9.3
  • git Debian 14, Debian 13, Debian 12 1:2.0.0~rc2-1

debian advisories DEBIAN-CVE-2014-9938

  • git Ubuntu 14.04 LTS 1:1.9.1-1ubuntu0.4

ubuntu advisories UBUNTU-CVE-2014-9938

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • git RHEL 7 1.8.3.1-11.el7
  • gitk RHEL 7 1.8.3.1-11.el7
  • git-hg RHEL 7 1.8.3.1-11.el7
  • git-p4 RHEL 7 1.8.3.1-11.el7
  • gitweb RHEL 7 1.8.3.1-11.el7
  • git-all RHEL 7 1.8.3.1-11.el7
  • git-bzr RHEL 7 1.8.3.1-11.el7
  • git-cvs RHEL 7 1.8.3.1-11.el7

red hat advisories RHSA-2017:2004

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2014-9938 updated cvss 7.8

git: git-prompt.sh does not sanitize branch names in $PS1

  • Red Hat Enterprise Linux Client Optional (v. 7) git 1.8.3.1-11.el7, gitk 1.8.3.1-11.el7, git-hg 1.8.3.1-11.el7, git-p4 1.8.3.1-11.el7, gitweb 1.8.3.1-11.el7, git-all 1.8.3.1-11.el7, +10 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) git 1.8.3.1-11.el7, gitk 1.8.3.1-11.el7, git-hg 1.8.3.1-11.el7, git-p4 1.8.3.1-11.el7, gitweb 1.8.3.1-11.el7, git-all 1.8.3.1-11.el7, +10 more Red Hat Enterprise Linux Server (v. 7) git 1.8.3.1-11.el7, perl-Git 1.8.3.1-11.el7 Red Hat Enterprise Linux Server Optional (v. 7) gitk 1.8.3.1-11.el7, git-hg 1.8.3.1-11.el7, git-p4 1.8.3.1-11.el7, gitweb 1.8.3.1-11.el7, git-all 1.8.3.1-11.el7, git-bzr 1.8.3.1-11.el7, +8 more Red Hat Enterprise Linux Workstation (v. 7) git 1.8.3.1-11.el7, perl-Git 1.8.3.1-11.el7 Red Hat Enterprise Linux Workstation Optional (v. 7) gitk 1.8.3.1-11.el7, git-hg 1.8.3.1-11.el7, git-p4 1.8.3.1-11.el7, gitweb 1.8.3.1-11.el7, git-all 1.8.3.1-11.el7, git-bzr 1.8.3.1-11.el7, +8 more
    fixed: vendor fix RHSA-2017:2004
  • Red Hat Enterprise Linux 6 git, gitk, gitweb, git-all, git-cvs, git-gui, +6 more Red Hat Software Collections rh-git29-git, rh-git29-gitk, rh-git29-git-p4, rh-git29-gitweb, rh-git29-git-all, rh-git29-git-cvs, +9 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.32% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/njhartwell/pw3nage referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-116 Improper Encoding or Escaping of Output

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.