Security Resilience

CVE-2025-61659

magicmonty bash-git-prompt

Published
29 September 2025
Modified
09 October 2026
CVSS Score v3.1 6.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
EPSS Score 0.0014 3th percentile
Risk Priority 48 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-61659 is a medium-severity Insecure Temporary File (CWE-377) vulnerability in magicmonty bash-git-prompt (named in the CVE record; NVD lists no product yet). Its CVSS base score is 6.8 (Medium).

Operationally, ranked at the 3th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-6 (Least Privilege) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-20651Shared CWE-377
CVE-2026-49134Shared CWE-377
CVE-2026-40973Shared CWE-377
CVE-2026-20649Shared CWE-377
CVE-2024-6654Shared CWE-377
CVE-2023-43498Shared CWE-377
CVE-2024-10372Shared CWE-377
CVE-2026-113713Shared CWE-377
CVE-2024-2313Shared CWE-377
CVE-2026-63404Shared CWE-377

Affected Assets

magicmonty
bash-git-prompt
named in the CVE record; NVD lists no product yet

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

AC-3 enforces file-system access authorizations so that temporary files cannot be read or modified by unauthorized processes.

AC-6 reduces the privileges available to processes that create or access temporary files, limiting blast radius if a file is predictable or left readable.

SC-4 directly stops unauthorized information leakage through shared resources such as world-writable temporary directories.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect insecure temporary files but does not prevent their creation.

prevents

Secure coding standards explicitly require safe temporary-file APIs and permissions.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-377, a class-level weakness. Rules are authored against its narrower children: CWE-379.

References