---
id: CVE-2025-61659
title: >-
  bash-git-prompt 2.6.1 through 2.7.1 insecurely uses the
  /tmp/git-index-private$$ file, which has a predictable name.
summary: >-
  bash-git-prompt 2.6.1 through 2.7.1 insecurely uses the
  /tmp/git-index-private$$ file, which has a predictable name.
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L'
cwe:
  - CWE-377
published: '2025-09-29'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T09:10:00.213'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-61659'
references:
  - url: 'https://github.com/magicmonty/bash-git-prompt/issues/561'
    label: cve@mitre.org
tags:
  - nvd
epss: 0.00142
epssPercentile: 0.02989
ingestedAt: '2026-10-09T09:31:00.984Z'
---

## Overview

bash-git-prompt 2.6.1 through 2.7.1 insecurely uses the /tmp/git-index-private$$ file, which has a predictable name.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
