Description
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.
Metrics
CVSS 3.1 8.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
References
- https://access.redhat.com/errata/RHSA-2017:2004Third Party Advisory
- https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43fPatch, Third Party Advisory
- https://github.com/njhartwell/pw3nageExploit, Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:2004Third Party Advisory
- https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43fPatch, Third Party Advisory
- https://github.com/njhartwell/pw3nageExploit, Third Party Advisory
Timeline
- Published
- Mar 20, 2017
- Last modified
- Jun 17, 2026
- NVD status
- Modified