CVE-2025-61659: magicmonty bash-git-prompt · Insecure Temporary File
Affects magicmonty bash-git-promptSource CVE Database V5
Not known to be exploited · CVSS 6.8 Medium.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 29 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| magicmonty bash-git-prompt | Affected
| Fixed in– |
AI-suggested
To mitigate CVE-2025-61659, European organizations should first update bash-git-prompt to a version that addresses the insecure temporary file usage once available. Until patches are released, users should avoid using vulnerable versions and consider disabling bash-git-prompt in multi-user or sensitive environments. Implement secure temporary file creation practices by using system calls or libraries that generate unpredictable temporary filenames (e.g., mkstemp) instead of predictable patterns. Restrict permissions on the /tmp directory to prevent unauthorized users from creating or modifying files. Employ mandatory access controls (e.g., AppArmor, SELinux) to limit the ability of local users to interfere with temporary files used by bash-git-prompt. Conduct regular audits of temporary file usage in scripts and development tools to identify similar insecure patterns. Educate developers and system administrators about the risks of predictable temporary files and enforce secure coding standards. Monitor system logs for suspicious file access or modification attempts in /tmp. Finally, isolate build and development environments to reduce the risk of local privilege escalation through such vulnerabilities.
Description
bash-git-prompt 2.6.1 through 2.7.1 insecurely uses the /tmp/git-index-private$$ file, which has a predictable name.