CVE-2025-61659 Other in bash-git-prompt
An attacker can exploit a predictable temporary file name in bash-git-prompt to modify data or escalate privileges.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-61659?
CVE-2025-61659 is a medium-severity vulnerability in magicmonty bash-git-prompt, published on 29 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
bash-git-prompt 2.6.1 through 2.7.1 insecurely uses the /tmp/git-index-private$$ file, which has a predictable name.
Weakness: CWE-377
Which versions are affected by CVE-2025-61659?
Linux distribution packages (2)
bash-git-prompt openSUSE:Leap 16.0 | All versions | 2.7.1-bp160.2.1 |
bash-git-prompt openSUSE:Tumbleweed | All versions | 2.7.1-4.1 |
How do I fix CVE-2025-61659?
Apply the vendor's patch.
Is CVE-2025-61659 being exploited?
There is no known exploitation of CVE-2025-61659 in the wild and no public exploit code.
Sources
Also known as GHSA-r225-6x7c-4q3h, openSUSE-SU-2025:15770-1, openSUSE-SU-2025:20130-1.