git: Improper handling of PATH allows for commands to be executed from the current directory
Published Nov 23, 2018
9.8
CRITICALCVSS 3.0
EPSS 4.12%
Description
Git before 2.19.2 on Linux and UNIX executes commands from the current working directory (as if '.' were at the end of $PATH) in certain cases involving the run_command() API and run-command.c, because there was a dangerous change from execvp to execv during 2017.
Affected products
No data.
Configuration 1
Running on/with
- n/a
Configuration 2
- 18.04
- 18.10
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-git218-git-0:2.18.1-3.el7
Fixed · RHSA-2018:3800
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-git218-git-0:2.18.1-3.el7
Fixed · RHSA-2018:3800
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-git218-git-0:2.18.1-3.el7
Fixed · RHSA-2018:3800
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-git218-git-0:2.18.1-3.el7
Fixed · RHSA-2018:3800
Red Hat Enterprise Linux 6
git
Not affected
Red Hat Enterprise Linux 7
git
Not affected
Red Hat Enterprise Linux 8
git
Not affected
Red Hat Software Collections
rh-git29-git
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-git218-git-0:2.18.1-3.el7 | Fixed | RHSA-2018:3800 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-git218-git-0:2.18.1-3.el7 | Fixed | RHSA-2018:3800 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-git218-git-0:2.18.1-3.el7 | Fixed | RHSA-2018:3800 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-git218-git-0:2.18.1-3.el7 | Fixed | RHSA-2018:3800 |
| Red Hat Enterprise Linux 6 | git | Not affected | n/a |
| Red Hat Enterprise Linux 7 | git | Not affected | n/a |
| Red Hat Enterprise Linux 8 | 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.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:L/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
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (20 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.12% (0.04120) | 90.47th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.12% (0.04120) | 89.45th | v5 (v2026.06.15) |
| Jun 4, 2026 | 0.56% (0.00557) | 68.53th | v4 (v2025.03.14) |
| Nov 18, 2025 | 1.61% (0.01611) | 80.25th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.31% (0.00311) | 52.05th | v4 (v2025.03.14) |
| Jul 20, 2024 | 2.01% (0.02014) | 89.05th | v3 (v2023.03.01) |
| Jul 12, 2024 | 2.01% (0.02014) | 89.02th | v3 (v2023.03.01) |
| May 25, 2024 | 2.39% (0.02386) | 89.86th | v3 (v2023.03.01) |
| Apr 15, 2024 | 2.23% (0.02225) | 89.33th | v3 (v2023.03.01) |
| Nov 17, 2023 | 2.39% (0.02388) | 88.71th | v3 (v2023.03.01) |
| Apr 21, 2023 | 2.05% (0.02049) | 87.31th | v3 (v2023.03.01) |
| Mar 7, 2023 | 2.15% (0.02151) | 87.52th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.11% (0.01108) | 53.57th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.11% (0.01108) | 51.54th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.11% (0.01108) | 29.61th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.66% (0.01659) | 34.20th | v1 |
| Jan 6, 2022 | 1.66% (0.01659) | 33.50th | v1 |
| Sep 1, 2021 | 1.66% (0.01659) | 73.96th | v1 |
| Apr 14, 2021 | 1.66% (0.01659) | 0.00th | v1 |
References (11)
- http://www.securityfocus.com/bid/106020 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1042166 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:3800 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-19486 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1653143 Issue Tracking
- https://git.kernel.org/pub/scm/git/git.git/commit/?id=321fd82389742398d2924640ce3a61791fd27d60 x_refsource_MISCMailing ListPatchThird Party Advisory
- https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/RelNotes/2.19.2.txt x_refsource_MISCRelease NotesThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-19486
- https://security.gentoo.org/glsa/201904-13 vendor-advisoryx_refsource_GENTOO
- https://usn.ubuntu.com/3829-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-19486
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/106020 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| http://www.securitytracker.com/id/1042166 | vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/errata/RHSA-2018:3800 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2018-19486 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1653143 | Issue Tracking | |
| https://git.kernel.org/pub/scm/git/git.git/commit/?id=321fd82389742398d2924640ce3a61791fd27d60 | x_refsource_MISCMailing ListPatchThird Party Advisory | |
| https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/RelNotes/2.19.2.txt | x_refsource_MISCRelease NotesThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-19486 | ||
| https://security.gentoo.org/glsa/201904-13 | vendor-advisoryx_refsource_GENTOO | |
| https://usn.ubuntu.com/3829-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-19486 |
Change history (0)
No recorded changes yet.