LiveActive security incident?Get immediate response
CVE Record

CVE-2014-9938: contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, al...

contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a malicious repository to cause code execution.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Older Git installations could run unintended commands when a developer enters a malicious repository and their shell prompt displays the current branch. The issue is tied to Git's optional git-prompt.sh helper before Git 1.9.3. It is mainly a developer workstation and build-image risk, not a remotely reachable server bug.

Executive priority

Treat as a targeted developer-environment risk. Prioritize cleanup where employees handle untrusted repositories or where build systems use old images. The age of the issue lowers urgency if asset inventory confirms modern Git everywhere.

Technical view

contrib/completion/git-prompt.sh in Git before 1.9.3 failed to sanitize branch names before placing them in PS1. A malicious repository branch name could influence shell prompt evaluation and lead to code execution when the prompt is rendered. The Git commit reference indicates the upstream fix; Red Hat also issued an advisory.

Likely exposure

Exposure is most likely on legacy developer workstations, CI images, jump hosts, or admin shells using Git before 1.9.3 and sourcing git-prompt.sh in PS1. Modern Git packages are unlikely to be affected unless old vendor builds remain in use.

Exploitation context

The bundle does not show CISA KEV listing or active exploitation evidence. Public references include a repository and the upstream fixing commit, so proof-of-concept awareness may exist, but active exploitation should not be assumed from these sources alone.

Researcher notes

The CVE record lacks CVSS, CWE, and structured affected-product data beyond the description. Analysis should stay anchored to Git before 1.9.3 and git-prompt.sh PS1 handling. Do not expand scope to other shells, prompts, or Git integrations without separate evidence.

Mitigation direction

  • Upgrade Git to 1.9.3 or a vendor-supported fixed package.
  • Apply relevant vendor advisories, including Red Hat guidance where applicable.
  • Remove or disable vulnerable git-prompt.sh usage on legacy systems until patched.
  • Retire old developer and CI images that ship affected Git versions.
  • Check vendor documentation for distribution-specific backports.

Validation and detection

  • Inventory Git versions on developer workstations, CI runners, and admin hosts.
  • Identify shell profiles that source contrib/completion/git-prompt.sh.
  • Confirm deployed packages include the upstream sanitization fix or vendor backport.
  • Review golden images and containers for Git versions before 1.9.3.
  • Record exceptions where Git cannot be updated immediately.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2014-9938 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.