Name | CVE-2014-9938 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
git (PTS) | jessie, jessie (lts) | 1:2.1.4-2.1+deb8u14 | fixed |
| stretch (security) | 1:2.11.0-3+deb9u7 | fixed |
| stretch (lts), stretch | 1:2.11.0-3+deb9u11 | fixed |
| buster (security), buster, buster (lts) | 1:2.20.1-2+deb10u9 | fixed |
| bullseye | 1:2.30.2-1+deb11u2 | fixed |
| bullseye (security) | 1:2.30.2-1+deb11u3 | fixed |
| bookworm (security), bookworm | 1:2.39.5-0+deb12u1 | fixed |
| trixie | 1:2.45.2-1 | fixed |
| sid | 1:2.45.2-1.2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
git | source | wheezy | (not affected) | | | |
git | source | (unstable) | 1:2.0.0~rc2-1 | | | |
Notes
[wheezy] - git <not-affected> (Vulnerable code introduced in 1.8.1-rc0)
https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f
https://github.com/njhartwell/pw3nage
Vulnerability likely introduced by the "pc_mode" in https://github.com/git/git/commit/1bfc51ac814125de03ddf1900245e42d6ce0d250