Vulnerabilities / CVE-2016-2315

critical

CVE-2016-2315

git: path_name() integer truncation and overflow leading to buffer overflow

Published Modified CWE 119
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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat6.8AV:N/AC:M/Au:N/C:P/I:P/A:P

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

Description

revision.c in git before 2.7.4 uses an incorrect integer data type, which allows remote attackers to execute arbitrary code via a (1) long filename or (2) many nested trees, leading to a heap-based buffer overflow.

Affected packages and fixed versions

SourcePackageFixed in
amazon linux 1emacs-git, emacs-git-el, git and 12 more2.7.4-1.47.amzn1
debian 11git1:2.7.0-1
debian 12git1:2.7.0-1
debian 13git1:2.7.0-1
debian 14git1:2.7.0-1
debian 7git1:1.7.10.4-1+wheezy3
debian 8git1:2.1.4-2.1+deb8u2
echogit1:2.7.0-1
Oracle Linux 6emacs-git, emacs-git-el, git and 9 more1.7.1-4.el6_7.1
Oracle Linux 7emacs-git, emacs-git-el, git and 13 more1.8.3.1-6.el7_2.1
root.io debian 11rootio-git1:2.7.0-1
root.io debian 12rootio-git1:2.7.0-1
Show all 56 entries from 16 sources
SourcePackageFixed in
amazon linux 1emacs-git2.7.4-1.47.amzn1
amazon linux 1emacs-git-el2.7.4-1.47.amzn1
amazon linux 1git2.7.4-1.47.amzn1
amazon linux 1git-all2.7.4-1.47.amzn1
amazon linux 1git-bzr2.7.4-1.47.amzn1
amazon linux 1git-cvs2.7.4-1.47.amzn1
amazon linux 1git-daemon2.7.4-1.47.amzn1
amazon linux 1git-debuginfo2.7.4-1.47.amzn1
amazon linux 1git-email2.7.4-1.47.amzn1
amazon linux 1git-hg2.7.4-1.47.amzn1
amazon linux 1git-p42.7.4-1.47.amzn1
amazon linux 1git-svn2.7.4-1.47.amzn1
amazon linux 1gitweb2.7.4-1.47.amzn1
amazon linux 1perl-Git2.7.4-1.47.amzn1
amazon linux 1perl-Git-SVN2.7.4-1.47.amzn1
debian 11git1:2.7.0-1
debian 12git1:2.7.0-1
debian 13git1:2.7.0-1
debian 14git1:2.7.0-1
debian 7git1:1.7.10.4-1+wheezy3
debian 8git1:2.1.4-2.1+deb8u2
echogit1:2.7.0-1
Oracle Linux 6emacs-git1.7.1-4.el6_7.1
Oracle Linux 6emacs-git-el1.7.1-4.el6_7.1
Oracle Linux 6git1.7.1-4.el6_7.1
Oracle Linux 6git-all1.7.1-4.el6_7.1
Oracle Linux 6git-cvs1.7.1-4.el6_7.1
Oracle Linux 6git-daemon1.7.1-4.el6_7.1
Oracle Linux 6git-email1.7.1-4.el6_7.1
Oracle Linux 6git-gui1.7.1-4.el6_7.1
Oracle Linux 6git-svn1.7.1-4.el6_7.1
Oracle Linux 6gitk1.7.1-4.el6_7.1
Oracle Linux 6gitweb1.7.1-4.el6_7.1
Oracle Linux 6perl-Git1.7.1-4.el6_7.1
Oracle Linux 7emacs-git1.8.3.1-6.el7_2.1
Oracle Linux 7emacs-git-el1.8.3.1-6.el7_2.1
Oracle Linux 7git1.8.3.1-6.el7_2.1
Oracle Linux 7git-all1.8.3.1-6.el7_2.1
Oracle Linux 7git-bzr1.8.3.1-6.el7_2.1
Oracle Linux 7git-cvs1.8.3.1-6.el7_2.1
Oracle Linux 7git-daemon1.8.3.1-6.el7_2.1
Oracle Linux 7git-email1.8.3.1-6.el7_2.1
Oracle Linux 7git-gui1.8.3.1-6.el7_2.1
Oracle Linux 7git-hg1.8.3.1-6.el7_2.1
Oracle Linux 7git-p41.8.3.1-6.el7_2.1
Oracle Linux 7git-svn1.8.3.1-6.el7_2.1
Oracle Linux 7gitk1.8.3.1-6.el7_2.1
Oracle Linux 7gitweb1.8.3.1-6.el7_2.1
Oracle Linux 7perl-Git1.8.3.1-6.el7_2.1
Oracle Linux 7perl-Git-SVN1.8.3.1-6.el7_2.1
root.io debian 11rootio-git1:2.7.0-1
root.io debian 12rootio-git1:2.7.0-1
root.io debian 13rootio-git1:2.7.0-1
ubuntu 12.04git1:1.7.9.5-1ubuntu0.3
ubuntu 14.04git1:1.9.1-1ubuntu0.3
ubuntu 15.10git1:2.5.0-1ubuntu0.2

References

All 32 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.