Description
bash-git-prompt 2.6.1 through 2.7.1 insecurely uses the /tmp/git-index-private$$ file, which has a predictable name.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| magicmonty | bash-git-prompt | 2.6.1 – ≤ 2.7.1 | — |
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.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | bash-git-prompt | 2.7.1-4.1 | openSUSE-SU-2025:15770-1 |
| openSUSE Leap 16.0 | bash-git-prompt | 2.7.1-bp160.2.1 | openSUSE-SU-2025:20130-1 |
Advisories 2
- openSUSE-SU-2025:20130-1 Security update for bash-git-prompt SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15770-1 bash-git-prompt-2.7.1-4.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026