git: git-prompt.sh does not sanitize branch names in $PS1
Published Mar 20, 2017
8.8
HIGHCVSS 3.1
EPSS 2.32%
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.
Affected products
No data.
No data.
Red Hat Enterprise Linux 7
git-0:1.8.3.1-11.el7
Fixed · RHSA-2017:2004
Red Hat Enterprise Linux 6
git
Not affected
Red Hat Software Collections
rh-git29-git
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | git-0:1.8.3.1-11.el7 | Fixed | RHSA-2017:2004 |
| Red Hat Enterprise Linux 6 | git | Not affected | n/a |
| Red Hat Software Collections | rh-git29-git | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (9 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.32% (0.02320) | 82.84th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.32% (0.02320) | 81.16th | v5 (v2026.06.15) |
| Mar 17, 2025 | 1.02% (0.01016) | 75.63th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.78% (0.00782) | 82.10th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.78% (0.00782) | 80.83th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.78% (0.00782) | 78.66th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.58% (0.02578) | 82.08th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.58% (0.02578) | 80.28th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.58% (0.02578) | 61.77th | v2 (v2022.01.01) |
References (7)
- https://access.redhat.com/errata/RHSA-2017:2004 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2014-9938 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1434415 Issue Tracking
- https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f x_refsource_CONFIRMPatchThird Party Advisory
- https://github.com/njhartwell/pw3nage x_refsource_MISCExploitThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2014-9938
- https://www.cve.org/CVERecord?id=CVE-2014-9938
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2017:2004 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2014-9938 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1434415 | Issue Tracking | |
| https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f | x_refsource_CONFIRMPatchThird Party Advisory | |
| https://github.com/njhartwell/pw3nage | x_refsource_MISCExploitThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2014-9938 | ||
| https://www.cve.org/CVERecord?id=CVE-2014-9938 |
Change history (0)
No recorded changes yet.