CVE-2025-61659 Details
Description
bash-git-prompt 2.6.1 through 2.7.1 insecurely uses the /tmp/git-index-private$$ file, which has a predictable name.
A vulnerability exists in bash-git-prompt versions 2.6.1 through 2.7.1 due to the insecure use of temporary files in the /tmp directory. The files /tmp/git-index-private* and /tmp/git-index-private*.lock are created with predictable names based on the process ID of the bash session. This predictability can be exploited by attackers to perform symlink attacks, where the 'cp' command is tricked into overwriting a file of the attacker's choice. Additionally, the vulnerability could lead to a denial-of-service by pre-creating the temporary file, causing the bash-git-prompt to malfunction.
Users and packagers of bash-git-prompt should update to the latest version, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 29, 2025CISA-ADP
Assessed Oct 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/magicmonty/bash-git-prompt/issues/561 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-377 | Insecure Temporary File | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| magicmonty bash-git-prompt | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 9, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 29, 2025 | New CVE Received | [email protected] |
Volerion