Vulnerabilities / CVE-2018-19486

critical

CVE-2018-19486

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

Published Modified CWE 426
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.5CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (high), Amazon (high), Ubuntu (medium).

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 packages and fixed versions

SourcePackageFixed in
Photon OS 1.0git2.23.0-1.ph1
Photon OS 2.0git2.23.0-1.ph2
Photon OS 3.0git2.23.0-1.ph3
Photon OS 5.0git, git-extras, git-lang2.43.7-1.ph5
alpine 3.6git2.13.7-r2
alpine 3.7git2.15.r-r1
alpine 3.8git2.18.1-r1
amazon linux 1emacs-git, emacs-git-el, git and 12 more2.14.5-1.60.amzn1
amazon linux 2git, git-all, git-core and 13 more2.17.2-2.amzn2
debian 11git1:2.19.2-1
debian 12git1:2.19.2-1
debian 13git1:2.19.2-1
Show all 51 entries from 20 sources
SourcePackageFixed in
Photon OS 1.0git2.23.0-1.ph1
Photon OS 2.0git2.23.0-1.ph2
Photon OS 3.0git2.23.0-1.ph3
Photon OS 5.0git2.43.7-1.ph5
Photon OS 5.0git-extras2.43.7-1.ph5
Photon OS 5.0git-lang2.43.7-1.ph5
alpine 3.6git2.13.7-r2
alpine 3.7git2.15.r-r1
alpine 3.8git2.18.1-r1
amazon linux 1emacs-git2.14.5-1.60.amzn1
amazon linux 1emacs-git-el2.14.5-1.60.amzn1
amazon linux 1git2.14.5-1.60.amzn1
amazon linux 1git-all2.14.5-1.60.amzn1
amazon linux 1git-bzr2.14.5-1.60.amzn1
amazon linux 1git-cvs2.14.5-1.60.amzn1
amazon linux 1git-daemon2.14.5-1.60.amzn1
amazon linux 1git-debuginfo2.14.5-1.60.amzn1
amazon linux 1git-email2.14.5-1.60.amzn1
amazon linux 1git-hg2.14.5-1.60.amzn1
amazon linux 1git-p42.14.5-1.60.amzn1
amazon linux 1git-svn2.14.5-1.60.amzn1
amazon linux 1gitweb2.14.5-1.60.amzn1
amazon linux 1perl-Git2.14.5-1.60.amzn1
amazon linux 1perl-Git-SVN2.14.5-1.60.amzn1
amazon linux 2git2.17.2-2.amzn2
amazon linux 2git-all2.17.2-2.amzn2
amazon linux 2git-core2.17.2-2.amzn2
amazon linux 2git-core-doc2.17.2-2.amzn2
amazon linux 2git-cvs2.17.2-2.amzn2
amazon linux 2git-daemon2.17.2-2.amzn2
amazon linux 2git-debuginfo2.17.2-2.amzn2
amazon linux 2git-email2.17.2-2.amzn2
amazon linux 2git-gui2.17.2-2.amzn2
amazon linux 2git-p42.17.2-2.amzn2
amazon linux 2git-subtree2.17.2-2.amzn2
amazon linux 2git-svn2.17.2-2.amzn2
amazon linux 2gitk2.17.2-2.amzn2
amazon linux 2gitweb2.17.2-2.amzn2
amazon linux 2perl-Git2.17.2-2.amzn2
amazon linux 2perl-Git-SVN2.17.2-2.amzn2
debian 11git1:2.19.2-1
debian 12git1:2.19.2-1
debian 13git1:2.19.2-1
debian 14git1:2.19.2-1
echogit1:2.19.2-1
root.io debian 11rootio-git1:2.19.2-1
root.io debian 12rootio-git1:2.19.2-1
root.io debian 13rootio-git1:2.19.2-1
ubuntu 18.04git1:2.17.1-1ubuntu0.4
ubuntu 18.04-ESMgit1:2.17.1-1ubuntu0.4
ubuntu 18.10git1:2.19.1-1ubuntu1.1

References

All 11 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.