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.
https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f
https://access.redhat.com/errata/RHSA-2017:2004
Source: Mitre, NVD
Published: 2017-03-20
Updated: 2024-11-21
Base Score: 6.8
Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P
Severity: Medium
Base Score: 8.8
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Severity: High