CVE-2014-9938

MEDIUM

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.

References

https://access.redhat.com/errata/RHSA-2017:2004

https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f

https://github.com/njhartwell/pw3nage

Details

Source: MITRE

Published: 2017-03-20

Updated: 2018-01-05

Type: CWE-116

Risk Information

CVSS v2.0

Base Score: 6.8

Vector: (AV:N/AC:M/Au:N/C:P/I:P/A:P)

Impact Score: 6.4

Exploitability Score: 8.6

Severity: MEDIUM

CVSS v3.0

Base Score: 8.8

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

Impact Score: 5.9

Exploitability Score: 2.8

Severity: HIGH