Skip to content
Fencer Vulns
critical 9.8

CVE-2018-19486 json

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 ca…

published 2018-11-23 7 y ago modified 2026-06-17 4 mo ago also EUVD-2018-11175

cvss
9.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
4.1%
EPSS 4.1% chance of exploitation in 30 days, percentile 90%
public exploits
0
none known

Summary

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.

Patch / fix

  • git-scm git 2.19.2
  • git Debian 14, Debian 13, Debian 12 1:2.19.2-1

debian advisories DEBIAN-CVE-2018-19486

  • git Ubuntu 18.04 LTS 1:2.17.1-1ubuntu0.4

ubuntu advisories UBUNTU-CVE-2018-19486

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • rh-git218-git RHEL 3 SOFTWARE_COLLECTIONS 2.18.1-3.el7
  • rh-git218-gitk RHEL 3 SOFTWARE_COLLECTIONS 2.18.1-3.el7
  • rh-git218-git-p4 RHEL 3 SOFTWARE_COLLECTIONS 2.18.1-3.el7
  • rh-git218-gitweb RHEL 3 SOFTWARE_COLLECTIONS 2.18.1-3.el7
  • rh-git218-git-all RHEL 3 SOFTWARE_COLLECTIONS 2.18.1-3.el7
  • rh-git218-git-cvs RHEL 3 SOFTWARE_COLLECTIONS 2.18.1-3.el7
  • rh-git218-git-gui RHEL 3 SOFTWARE_COLLECTIONS 2.18.1-3.el7
  • rh-git218-git-svn RHEL 3 SOFTWARE_COLLECTIONS 2.18.1-3.el7

red hat advisories RHSA-2018:3800

  • git SLE Module for Development Tools 15, SLE Module for Basesystem 15 2.16.4-3.9.2

suse advisories SUSE-SU-2018:4190-1

  • git openSUSE Tumbleweed 2.33.0-1.3

opensuse advisories openSUSE-SU-2024:10786-1

  • git Alpine 3.6 2.13.7-r2
  • git Alpine 3.8 2.18.1-r1

alpine advisories ALPINE-CVE-2018-19486

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-19486 updated cvss 7.5

git: Improper handling of PATH allows for commands to be executed from the current directory

  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-git218-git 2.18.1-3.el7, rh-git218-gitk 2.18.1-3.el7, rh-git218-git-p4 2.18.1-3.el7, rh-git218-gitweb 2.18.1-3.el7, rh-git218-git-all 2.18.1-3.el7, rh-git218-git-cvs 2.18.1-3.el7, +9 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-git218-git 2.18.1-3.el7, rh-git218-gitk 2.18.1-3.el7, rh-git218-git-p4 2.18.1-3.el7, rh-git218-gitweb 2.18.1-3.el7, rh-git218-git-all 2.18.1-3.el7, rh-git218-git-cvs 2.18.1-3.el7, +9 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-git218-git 2.18.1-3.el7, rh-git218-gitk 2.18.1-3.el7, rh-git218-git-p4 2.18.1-3.el7, rh-git218-gitweb 2.18.1-3.el7, rh-git218-git-all 2.18.1-3.el7, rh-git218-git-cvs 2.18.1-3.el7, +9 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-git218-git 2.18.1-3.el7, rh-git218-gitk 2.18.1-3.el7, rh-git218-git-p4 2.18.1-3.el7, rh-git218-gitweb 2.18.1-3.el7, rh-git218-git-all 2.18.1-3.el7, rh-git218-git-cvs 2.18.1-3.el7, +9 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-git218-git 2.18.1-3.el7, rh-git218-gitk 2.18.1-3.el7, rh-git218-git-p4 2.18.1-3.el7, rh-git218-gitweb 2.18.1-3.el7, rh-git218-git-all 2.18.1-3.el7, rh-git218-git-cvs 2.18.1-3.el7, +9 more
    fixed: vendor fix RHSA-2018:3800
  • Red Hat Enterprise Linux 6 git, gitk, gitweb, git-all, git-cvs, git-gui, +6 more Red Hat Enterprise Linux 7 git, gitk, git-hg, git-p4, gitweb, git-all, +12 more Red Hat Enterprise Linux 8 git, gitk, gitweb, git-all, git-gui, git-svn, +8 more Red Hat Software Collections rh-git29-git, rh-git29-gitk, rh-git29-git-p4, rh-git29-gitweb, rh-git29-git-all, rh-git29-git-cvs, +9 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

4.12% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.