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.
The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
Link | Tags |
---|---|
https://github.com/njhartwell/pw3nage | third party advisory exploit |
https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f | third party advisory patch |
https://access.redhat.com/errata/RHSA-2017:2004 | third party advisory vendor advisory |