CVE Database›CVE-2014-9938

CVE-2014-9938

git: git-prompt.sh does not sanitize branch names in $PS1

Loading…

Severity

Moderate

Red Hat Product Security

7.8

CVSS 3.0

Review impact separately from score.

Published · April 22, 2014

Updated · May 13, 2026

Description

It was found that the git-prompt.sh script shipped with git failed to correctly handle branch names containing special characters. A specially crafted git repository could use this flaw to execute arbitrary commands if a user working with the repository configured their shell to include repository information in the prompt.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.0 · 7.8
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')